akonadi
messagethreaderproxymodel.cpp
118 if (currentParentPos == 0 || (currentParentPos != -1 && realParentsList.indexOf(id) > currentParentPos)) {
170 mParent->createIndex(childrenMap[parentId].count() - 1, 0, childId); // Is it necessary to recreate the index ?
178 // mParent->beginRemoveColumns( indexMap[parentId], 0, sourceMessageModel()->columnCount() - 1 );
225 parentsIds << realPerfectParentsMap[id] << realUnperfectParentsMap[id] << realSubjectParentsMap[id];
282 QModelIndex MessageThreaderProxyModel::index(int row, int column, const QModelIndex &parent) const
327 return MessageThreaderProxyModel::index(d->indexMap[id].row(), index.column(), d->indexMap[id].parent());
330 QModelIndex MessageThreaderProxyModel::createIndex(int row, int column, quint32 internalId) const
347 connect(sourceModel(), SIGNAL(rowsInserted(QModelIndex,int,int)), SLOT(slotInsertRows(QModelIndex,int,int)));
348 connect(sourceModel(), SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), SLOT(slotRemoveRows(QModelIndex,int,int)));
349 connect(d->sourceMessageModel(), SIGNAL(collectionChanged(Akonadi::Collection)), SLOT(slotCollectionChanged()));
void setSourceModel(QAbstractItemModel *sourceMessageModel)
Set the source model.
Definition: messagethreaderproxymodel.cpp:339
QModelIndex createIndex(int row, int column, quint32 internalId) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:330
QList< Item::Id > subjectParents() const
Returns the list of possible parent message ids based on analyzing the subject.
Definition: messagethreadingattribute.cpp:136
QModelIndex mapToSource(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:316
int rowCount(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:364
Proxy to thread message using the Mailthreader agent.
Definition: messagethreaderproxymodel.h:38
qint64 internalId() const
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
QModelIndex mapFromSource(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:322
int indexOf(const T &value, int from) const
Message threading information.
Definition: messagethreadingattribute.h:34
int columnCount(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:357
void reset()
bool isValid() const
int elapsed() const
QMimeData * mimeData(const QModelIndexList &indexes) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:383
QList< Item::Id > perfectParents() const
Returns the list of perfect parent message ids.
Definition: messagethreadingattribute.cpp:116
QList< Item::Id > unperfectParents() const
Returns the list of non-perfect parent message ids.
Definition: messagethreadingattribute.cpp:126
virtual ~MessageThreaderProxyModel()
Destroy the model.
Definition: messagethreaderproxymodel.cpp:277
virtual void setSourceModel(QAbstractItemModel *sourceModel)
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
QModelIndex createIndex(int row, int column, void *ptr) const
QAbstractItemModel * sourceModel() const
virtual int columnCount(const QModelIndex &parent) const =0
int column() const
void start()
MessageThreaderProxyModel(QObject *parent=0)
Create a new MessageThreaderProxyModel.
Definition: messagethreaderproxymodel.cpp:270
void rowsInserted(const QModelIndex &parent, int start, int end)
bool hasChildren(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:352
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QModelIndex index(int row, int column, const QModelIndex &parent) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:282
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 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:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.