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];
282QModelIndex MessageThreaderProxyModel::index(int row, int column, const QModelIndex &parent) const
327 return MessageThreaderProxyModel::index(d->indexMap[id].row(), index.column(), d->indexMap[id].parent());
330QModelIndex 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 fetchAttribute(const QByteArray &type, bool fetch=true)
Sets whether the attribute of the given type should be fetched.
Definition itemfetchscope.cpp:80
QModelIndex indexForItem(const Akonadi::Item &item, const int column) const
Returns the model index for the given item, with the given column.
Definition itemmodel.cpp:447
Item itemForIndex(const QModelIndex &index) const
Returns the item at the given index.
Definition itemmodel.cpp:391
virtual QStringList mimeTypes() const
Reimplemented from QAbstractItemModel.
Definition messagemodel.cpp:57
Proxy to thread message using the Mailthreader agent.
Definition messagethreaderproxymodel.h:39
QModelIndex mapToSource(const QModelIndex &index) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:316
QModelIndex index(int row, int column, const QModelIndex &parent) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:282
QModelIndex mapFromSource(const QModelIndex &index) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:322
QModelIndex parent(const QModelIndex &index) const
Reimplemented to actually do the threading.
Definition messagethreaderproxymodel.cpp:298
int columnCount(const QModelIndex &index) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:357
QMimeData * mimeData(const QModelIndexList &indexes) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:383
int rowCount(const QModelIndex &index) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:364
void setSourceModel(QAbstractItemModel *sourceMessageModel)
Set the source model.
Definition messagethreaderproxymodel.cpp:339
bool hasChildren(const QModelIndex &index) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:352
MessageThreaderProxyModel(QObject *parent=0)
Create a new MessageThreaderProxyModel.
Definition messagethreaderproxymodel.cpp:270
QModelIndex createIndex(int row, int column, quint32 internalId) const
Reimplemented.
Definition messagethreaderproxymodel.cpp:330
Message threading information.
Definition messagethreadingattribute.h:35
QList< Item::Id > subjectParents() const
Returns the list of possible parent message ids based on analyzing the subject.
Definition messagethreadingattribute.cpp:136
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.