lokalize
catalogmodel.cpp
Go to the documentation of this file.
59 connect(catalog,SIGNAL(signalEntryModified(DocPosition)),this,SLOT(reflectChanges(DocPosition)));
98 emit dataChanged(index(m_prevChanged.entry,0),index(m_prevChanged.entry,DisplayedColumnCount-1));
112 QVariant CatalogTreeModel::headerData(int section, Qt::Orientation /*orientation*/, int role) const
175 QString str=m_catalog->catalogString(DocPosition(index.row(),parts[index.column()==Target])).string;
251 bool CatalogTreeFilterModel::filterAcceptsRow(int source_row, const QModelIndex& source_parent) const
257 bool ready=sourceModel()->index(source_row,CatalogTreeModel::TranslationStatus,source_parent).data(Qt::UserRole).toBool();
262 bool untr=sourceModel()->index(source_row,CatalogTreeModel::Empty,source_parent).data(Qt::UserRole).toBool();
267 bool modified=sourceModel()->index(source_row,CatalogTreeModel::Modified,source_parent).data(Qt::UserRole).toBool();
293 int state=sourceModel()->index(source_row,CatalogTreeModel::State,source_parent).data(Qt::UserRole).toInt();
297 accepts=accepts&&!(m_individualRejectFilterEnable && source_row<m_individualRejectFilter.size() && m_individualRejectFilter.at(source_row));
void setFilterCaseSensitivity(Qt::CaseSensitivity cs)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
QVariant headerData(int section, Qt::Orientation, int role=Qt::DisplayRole) const
Definition: catalogmodel.cpp:112
Definition: pos.h:44
virtual void setSourceModel(QAbstractItemModel *sourceModel)
QVector< T > & fill(const T &value, int size)
QVariant data(const QModelIndex &, int role=Qt::DisplayRole) const
Definition: catalogmodel.cpp:128
bool isPresent(const short int &entry) const
whether 'merge source' has entry with such msgid
Definition: mergecatalog.cpp:110
void setMergeCatalogPointer(MergeCatalog *pointer)
Definition: catalogmodel.cpp:302
void modelReset()
QString & remove(int position, int n)
CatalogString catalogString(const DocPosition &pos) const
Definition: catalog.cpp:219
Definition: catalogmodel.h:49
Definition: catalogmodel.h:50
virtual int rowCount(const QModelIndex &parent) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: catalogmodel.cpp:63
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: catalogmodel.cpp:105
void reset()
bool isValid() const
void setFilterRole(int role)
QFont font()
int toInt(bool *ok) const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: catalogmodel.h:53
void setSourceModel(QAbstractItemModel *sourceModel)
Definition: catalogmodel.cpp:220
CatalogTreeFilterModel(QObject *parent)
Definition: catalogmodel.cpp:208
Definition: catalogmodel.h:55
int row() const
void invalidateFilter()
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: catalogmodel.cpp:73
void setEntriesFilteredOut(bool filteredOut=false)
Definition: catalogmodel.cpp:227
Definition: catalogmodel.h:54
QModelIndex createIndex(int row, int column, void *ptr) const
void reserve(int size)
Definition: catalogmodel.h:51
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
const T & at(int i) const
QAbstractItemModel * sourceModel() const
QVariant data(int role) const
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition: catalogmodel.cpp:251
bool isEmpty() const
Definition: catalogmodel.h:48
Definition: pos.h:43
Definition: catalogmodel.h:106
int column() const
bool toBool() const
CatalogTreeModel(QObject *parent, Catalog *catalog)
Definition: catalogmodel.cpp:41
QString fromLatin1(const char *str, int size)
This class represents a catalog It uses CatalogStorage interface to work with catalogs in different f...
Definition: catalog.h:74
QSize size(int flags, const QString &text, int tabStops, int *tabArray) const
Definition: catalogmodel.h:109
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
int size() const
void setFilterKeyColumn(int column)
void setEntryFilteredOut(int entry, bool filteredOut)
Definition: catalogmodel.cpp:234
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.