akonadi/kmime
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)));
Message threading information.
Definition: messagethreadingattribute.h:35
int rowCount(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:364
QModelIndex mapToSource(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:316
void setSourceModel(QAbstractItemModel *sourceMessageModel)
Set the source model.
Definition: messagethreaderproxymodel.cpp:339
QList< Item::Id > perfectParents() const
Returns the list of perfect parent message ids.
Definition: messagethreadingattribute.cpp:116
int columnCount(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:357
MessageThreaderProxyModel(QObject *parent=0)
Create a new MessageThreaderProxyModel.
Definition: messagethreaderproxymodel.cpp:270
QModelIndex index(int row, int column, const QModelIndex &parent) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:282
QModelIndex createIndex(int row, int column, quint32 internalId) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:330
bool hasChildren(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:352
QList< Item::Id > subjectParents() const
Returns the list of possible parent message ids based on analyzing the subject.
Definition: messagethreadingattribute.cpp:136
QModelIndex mapFromSource(const QModelIndex &index) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:322
Proxy to thread message using the Mailthreader agent.
Definition: messagethreaderproxymodel.h:39
QList< Item::Id > unperfectParents() const
Returns the list of non-perfect parent message ids.
Definition: messagethreadingattribute.cpp:126
QModelIndex parent(const QModelIndex &index) const
Reimplemented to actually do the threading.
Definition: messagethreaderproxymodel.cpp:298
QMimeData * mimeData(const QModelIndexList &indexes) const
Reimplemented.
Definition: messagethreaderproxymodel.cpp:383
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by doxygen 1.8.18 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.