Home
last modified time | relevance | path

Searched refs:EntityTreeModel (Results 1 – 25 of 170) sorted by relevance

1234567

/dports/databases/akonadi/akonadi-21.12.3/src/core/models/
H A Dentitytreemodel.cpp39 EntityTreeModel::EntityTreeModel(Monitor *monitor, QObject *parent) in EntityTreeModel() function in EntityTreeModel
43 Q_D(EntityTreeModel); in EntityTreeModel()
54 EntityTreeModel::~EntityTreeModel() in ~EntityTreeModel()
56 Q_D(EntityTreeModel); in ~EntityTreeModel()
71 Q_D(EntityTreeModel); in setListFilter()
80 Q_D(EntityTreeModel); in setCollectionsMonitored()
94 Q_D(EntityTreeModel); in setCollectionMonitored()
106 Q_D(EntityTreeModel); in setShowSystemEntities()
112 Q_D(EntityTreeModel); in clearAndReset()
408 Q_D(EntityTreeModel); in dropMimeData()
[all …]
H A Dentitymimetypefiltermodel.cpp27 , m_headerGroup(EntityTreeModel::EntityTreeHeaders) in EntityMimeTypeFilterModelPrivate()
39 EntityTreeModel::HeaderGroup m_headerGroup;
93 const QString rowMimetype = idx.data(EntityTreeModel::MimeTypeRole).toString(); in filterAcceptsRow()
100 const auto item = idx.data(EntityTreeModel::ItemRole).value<Akonadi::Item>(); in filterAcceptsRow()
133 void EntityMimeTypeFilterModel::setHeaderGroup(EntityTreeModel::HeaderGroup headerGroup) in setHeaderGroup()
146 role += (EntityTreeModel::TerminalUserRole * d->m_headerGroup); in headerData()
181 …t value = sourceModel()->data(mapToSource(parent), EntityTreeModel::ColumnCountRole + (EntityTreeM… in columnCount()
207 if (EntityTreeModel::ItemListHeaders == d->m_headerGroup) { in hasChildren()
211 if (EntityTreeModel::CollectionTreeHeaders == d->m_headerGroup) { in hasChildren()
214 Collection col = childIndex.data(EntityTreeModel::CollectionRole).value<Collection>(); in hasChildren()
[all …]
H A Dsubscriptionmodel.cpp52 const auto col = source_index.data(EntityTreeModel::CollectionRole).value<Collection>(); in filterAcceptsRow()
76 etm.setItemPopulationStrategy(EntityTreeModel::NoItemPopulation); in SubscriptionModelPrivate()
77 etm.setCollectionFetchStrategy(EntityTreeModel::FetchCollectionsRecursive); in SubscriptionModelPrivate()
108 EntityTreeModel etm;
119 … connect(&d->etm, &EntityTreeModel::collectionTreeFetched, this, &SubscriptionModel::modelLoaded); in SubscriptionModel()
133 const auto col = index.data(EntityTreeModel::CollectionRole).value<Collection>(); in data()
147 const auto col = index.data(EntityTreeModel::CollectionIdRole).toLongLong(); in data()
151 const auto col = index.data(EntityTreeModel::CollectionIdRole).toLongLong(); in data()
164 const auto col = index.data(EntityTreeModel::CollectionRole).value<Collection>(); in flags()
174 const auto col = index.data(EntityTreeModel::CollectionRole).value<Collection>(); in setData()
H A Dfavoritecollectionsmodel.cpp55 auto idx = EntityTreeModel::modelIndexForCollection(q, Collection{col}); in insertIfAvailable()
57 auto c = q->data(idx, EntityTreeModel::CollectionRole).value<Collection>(); in insertIfAvailable()
68 insertIfAvailable(idx.data(EntityTreeModel::CollectionIdRole).value<Collection::Id>()); in insertIfAvailable()
133 if (q->sourceModel()->setData(index, QVariant(), EntityTreeModel::CollectionRefRole)) { in reference()
150 q->sourceModel()->setData(index, QVariant(), EntityTreeModel::CollectionDerefRole); in dereference()
174 const auto idx = EntityTreeModel::modelIndexForCollection(q, Collection{collectionId}); in add()
176 auto col = q->data(idx, EntityTreeModel::CollectionRole).value<Collection>(); in add()
190 const auto idx = EntityTreeModel::modelIndexForCollection(q, Collection{collectionId}); in remove()
192 auto col = q->data(idx, EntityTreeModel::CollectionRole).value<Collection>(); in remove()
335 const QModelIndex idx = EntityTreeModel::modelIndexForCollection(sourceModel(), collection); in setFavoriteLabel()
[all …]
H A Dentitytreemodel_p.cpp83 Q_Q(EntityTreeModel); in init()
156 Q_Q(EntityTreeModel); in changeFetchState()
167 Q_Q(EntityTreeModel); in agentInstanceRemoved()
233 Q_Q(EntityTreeModel); in fetchCollections()
325 Q_Q(EntityTreeModel); in collectionsFetched()
453 Q_Q(EntityTreeModel); in itemsFetched()
460 Q_Q(EntityTreeModel); in itemsFetched()
574 Q_Q(EntityTreeModel); in retrieveAncestors()
679 Q_Q(EntityTreeModel); in insertCollection()
858 Q_Q(EntityTreeModel); in monitoredCollectionRemoved()
[all …]
/dports/databases/akonadi/akonadi-21.12.3/autotests/libs/
H A Detmpopulationtest.cpp76 class InspectableETM : public EntityTreeModel
80 : EntityTreeModel(monitor, parent) in InspectableETM()
89 QModelIndex getIndex(const QString &string, EntityTreeModel *model) in getIndex()
169 model->setItemPopulationStrategy(EntityTreeModel::ImmediatePopulation); in testMonitoringCollectionsPreset()
170 model->setCollectionFetchStrategy(EntityTreeModel::FetchCollectionsRecursive); in testMonitoringCollectionsPreset()
190 model->setItemPopulationStrategy(EntityTreeModel::ImmediatePopulation); in testMonitoringCollections()
216 model->setItemPopulationStrategy(EntityTreeModel::ImmediatePopulation); in testFullPopulation()
239 model->setItemPopulationStrategy(EntityTreeModel::ImmediatePopulation); in testAddMonitoringCollections()
268 model->setItemPopulationStrategy(EntityTreeModel::ImmediatePopulation); in testRemoveMonitoringCollections()
297 model->setItemPopulationStrategy(EntityTreeModel::ImmediatePopulation); in testDisplayFilter()
[all …]
H A Dlazypopulationtest.cpp20 class InspectableETM : public EntityTreeModel
24 : EntityTreeModel(monitor, parent) in InspectableETM()
98 QModelIndex getIndex(const QString &string, EntityTreeModel *model) in getIndex()
111 bool waitForPopulation(const QModelIndex &idx, EntityTreeModel *model, int count) in waitForPopulation()
122 void referenceCollection(EntityTreeModel *model, int index) in referenceCollection()
126 model->setData(idx, QVariant(), EntityTreeModel::CollectionRefRole); in referenceCollection()
127 model->setData(idx, QVariant(), EntityTreeModel::CollectionDerefRole); in referenceCollection()
130 void referenceCollections(EntityTreeModel *model, int count) in referenceCollections()
162 model->setItemPopulationStrategy(Akonadi::EntityTreeModel::LazyPopulation); in testItemAdded()
248 model->setItemPopulationStrategy(Akonadi::EntityTreeModel::LazyPopulation); in testItemAddedBeforeFetch()
[all …]
H A Dfavoriteproxytest.cpp25 class InspectableETM : public EntityTreeModel
29 : EntityTreeModel(monitor, parent) in InspectableETM()
64 QModelIndex getIndex(const QString &string, EntityTreeModel *model) in getIndex()
77 bool waitForPopulation(const QModelIndex &idx, EntityTreeModel *model, int count) in waitForPopulation()
94 model->setItemPopulationStrategy(Akonadi::EntityTreeModel::LazyPopulation); in createETM()
118 …const auto favoriteCollection = res3Index.data(EntityTreeModel::CollectionRole).value<Akonadi::Col… in testItemAdded()
128 …QTRY_COMPARE(favoriteModel->data(favoriteModel->index(0, 0, QModelIndex()), EntityTreeModel::Colle… in testItemAdded()
143 …QTRY_COMPARE(favoriteModel->data(favoriteModel->index(0, 0, QModelIndex()), EntityTreeModel::Colle… in testItemAdded()
169 …const auto favoriteCollection = res3Index.data(EntityTreeModel::CollectionRole).value<Akonadi::Col… in testLoadConfig()
180 …QTRY_COMPARE(favoriteModel->data(favoriteModel->index(0, 0, QModelIndex()), EntityTreeModel::Colle… in testLoadConfig()
[all …]
/dports/net/mailcommon/mailcommon-21.12.3/autotests/
H A Dfavoritestest.cpp32 EntityTreeModel *createETM();
42 static QModelIndex getIndex(const QString &string, EntityTreeModel *model) in getIndex()
55 static bool waitForPopulation(const QModelIndex &idx, EntityTreeModel *model, int count) in waitForPopulation()
66 EntityTreeModel *FavoriteProxyTest::createETM() in createETM()
70 auto model = new EntityTreeModel(changeRecorder, this); in createETM()
71 model->setItemPopulationStrategy(Akonadi::EntityTreeModel::LazyPopulation); in createETM()
80 EntityTreeModel *model = createETM(); in testReordering()
89 …const auto favoriteCollection = index.data(EntityTreeModel::CollectionRole).value<Akonadi::Collect… in testReordering()
/dports/net/akonadi-contacts/akonadi-contacts-21.12.3/src/akonadi-contacts/
H A Dcontactstreemodel.cpp37 : EntityTreeModel(monitor, parent) in ContactsTreeModel()
173 return EntityTreeModel::entityData(item, column, role); in entityData()
181 return EntityTreeModel::entityData(collection, column, role); in entityData()
187 return EntityTreeModel::entityData(collection, column, role); in entityData()
192 if (headerGroup == EntityTreeModel::CollectionTreeHeaders) { in entityColumnCount()
194 } else if (headerGroup == EntityTreeModel::ItemListHeaders) { in entityColumnCount()
197 return EntityTreeModel::entityColumnCount(headerGroup); in entityColumnCount()
205 if (headerGroup == EntityTreeModel::CollectionTreeHeaders) { in entityHeaderData()
215 } else if (headerGroup == EntityTreeModel::ItemListHeaders) { in entityHeaderData()
252 return EntityTreeModel::entityHeaderData(section, orientation, role, headerGroup); in entityHeaderData()
H A Dcontactcompletionmodel.cpp41 filter->setHeaderGroup(Akonadi::EntityTreeModel::ItemListHeaders); in self()
49 : EntityTreeModel(monitor, parent) in ContactCompletionModel()
103 return EntityTreeModel::entityData(item, column, role); in entityData()
108 return EntityTreeModel::entityData(collection, column, role); in entityData()
/dports/databases/akonadi/akonadi-21.12.3/src/core/
H A Dpartfetcher.cpp69 …const auto loadedParts = m_persistentIndex.data(EntityTreeModel::LoadedPartsRole).value<QSet<QByte… in fetchJobDone()
73 Item item = m_persistentIndex.data(EntityTreeModel::ItemRole).value<Item>(); in fetchJobDone()
82 model->setData(m_persistentIndex, itemVariant, EntityTreeModel::ItemRole); in fetchJobDone()
103 const auto loadedParts = index.data(EntityTreeModel::LoadedPartsRole).value<QSet<QByteArray>>(); in start()
106 d->m_item = d->m_persistentIndex.data(EntityTreeModel::ItemRole).value<Item>(); in start()
111 …const auto availableParts = index.data(EntityTreeModel::AvailablePartsRole).value<QSet<QByteArray>… in start()
119 …qobject_cast<Akonadi::Session *>(qvariant_cast<QObject *>(index.data(EntityTreeModel::SessionRole)… in start()
128 const auto item = index.data(EntityTreeModel::ItemRole).value<Akonadi::Item>(); in start()
/dports/deskutils/akonadiconsole/akonadiconsole-21.12.3/src/
H A Dakonadibrowsermodel.cpp209 : EntityTreeModel(monitor, parent) in AkonadiBrowserModel()
232 return EntityTreeModel::entityData(item, column, role); in entityData()
242 return Akonadi::EntityTreeModel::entityData(collection, column, role); in entityData()
255 return EntityTreeModel::entityColumnCount(headerGroup); in entityColumnCount()
268 if (headerGroup == EntityTreeModel::CollectionTreeHeaders) { in entityHeaderData()
275 } else if (headerGroup == EntityTreeModel::ItemListHeaders) { in entityHeaderData()
283 return EntityTreeModel::entityHeaderData(section, orientation, role, headerGroup); in entityHeaderData()
346 const Item leftItem = left.data(EntityTreeModel::ItemRole).value<Item>(); in lessThan()
347 const Item rightItem = right.data(EntityTreeModel::ItemRole).value<Item>(); in lessThan()
362 const Item leftItem = left.data(EntityTreeModel::ItemRole).value<Item>(); in lessThan()
[all …]
/dports/net/akonadi-calendar/akonadi-calendar-21.12.3/src/
H A Dcalendarmodel.cpp40 : EntityTreeModel(monitor) in CalendarModel()
178 return EntityTreeModel::entityData(collection, column, role); in entityData()
181 int CalendarModel::entityColumnCount(EntityTreeModel::HeaderGroup headerSet) const in entityColumnCount()
183 if (headerSet == EntityTreeModel::ItemListHeaders) { in entityColumnCount()
190 …entityHeaderData(int section, Qt::Orientation orientation, int role, EntityTreeModel::HeaderGroup … in entityHeaderData()
196 if (headerSet == EntityTreeModel::ItemListHeaders) { in entityHeaderData()
217 if (headerSet == EntityTreeModel::CollectionTreeHeaders) { in entityHeaderData()
H A Dcalendarmodel_p.h21 class CalendarModel : public Akonadi::EntityTreeModel
30 enum Role { SortRole = Akonadi::EntityTreeModel::UserRole, RecursRole };
42 Q_REQUIRED_RESULT int entityColumnCount(EntityTreeModel::HeaderGroup headerSet) const override;
44 …entityHeaderData(int section, Qt::Orientation orientation, int role, EntityTreeModel::HeaderGroup …
/dports/net/akonadi-mime/akonadi-mime-21.12.3/src/
H A Dmessagemodel.cpp42 : EntityTreeModel(monitor, parent) in MessageModel()
51 if (group == EntityTreeModel::ItemListHeaders) { in entityColumnCount()
55 return EntityTreeModel::entityColumnCount(group); in entityColumnCount()
117 return EntityTreeModel::entityData(item, column, role); in entityData()
126 return EntityTreeModel::entityHeaderData(section, orientation, role, headerGroup); in entityHeaderData()
/dports/databases/akonadi/akonadi-21.12.3/src/widgets/
H A Dentitylistview.cpp81 …const auto collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collecti… in itemClicked()
85 const Item item = index.model()->data(index, EntityTreeModel::ItemRole).value<Item>(); in itemClicked()
98 …const auto collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collecti… in itemDoubleClicked()
102 const Item item = index.model()->data(index, EntityTreeModel::ItemRole).value<Item>(); in itemDoubleClicked()
115 …const auto collection = index.model()->data(index, EntityTreeModel::CollectionRole).value<Collecti… in itemCurrentChanged()
119 const Item item = index.model()->data(index, EntityTreeModel::ItemRole).value<Item>(); in itemCurrentChanged()
193 … const auto collection = model()->data(index, EntityTreeModel::CollectionRole).value<Collection>(); in contextMenuEvent()
H A Dcollectioncombobox.cpp43 mModel = new EntityTreeModel(mMonitor, mParent); in CollectionComboBoxPrivate()
44 mModel->setItemPopulationStrategy(EntityTreeModel::NoItemPopulation); in CollectionComboBoxPrivate()
84 EntityTreeModel *mModel = nullptr;
95 …Q_EMIT mParent->currentChanged(modelIndex.data(EntityTreeModel::CollectionRole).value<Collection>(… in activated()
154 return modelIndex.data(Akonadi::EntityTreeModel::CollectionRole).value<Collection>(); in currentCollection()
H A Dprogressspinnerdelegate.cpp57 const QVariant fetchState = animation.index.data(Akonadi::EntityTreeModel::FetchStateRole); in timerEvent()
58 if (fetchState.toInt() != Akonadi::EntityTreeModel::FetchingState) { in timerEvent()
95 const QVariant fetchState = index.data(Akonadi::EntityTreeModel::FetchStateRole); in initStyleOption()
96 if (!fetchState.isValid() || fetchState.toInt() != Akonadi::EntityTreeModel::FetchingState) { in initStyleOption()
H A Dentitytreeview.cpp129 …const auto collection = idx.model()->data(idx, EntityTreeModel::CollectionRole).value<Collection>(… in itemClicked()
133 const Item item = idx.model()->data(idx, EntityTreeModel::ItemRole).value<Item>(); in itemClicked()
146 …const auto collection = idx.model()->data(idx, EntityTreeModel::CollectionRole).value<Collection>(… in itemDoubleClicked()
150 const Item item = idx.model()->data(idx, EntityTreeModel::ItemRole).value<Item>(); in itemDoubleClicked()
163 …const auto collection = idx.model()->data(idx, EntityTreeModel::CollectionRole).value<Collection>(… in itemCurrentChanged()
167 const Item item = idx.model()->data(idx, EntityTreeModel::ItemRole).value<Item>(); in itemCurrentChanged()
261 const Item item = model()->data(index, EntityTreeModel::ItemRole).value<Item>(); in contextMenuEvent()
H A Detmviewstatesaver.cpp34 const QModelIndex idx = EntityTreeModel::modelIndexForCollection(model, Collection(id)); in indexFromConfigString()
40 const QModelIndexList list = EntityTreeModel::modelIndexesForItem(model, Item(id)); in indexFromConfigString()
54 const auto c = index.data(EntityTreeModel::CollectionRole).value<Collection>(); in indexToConfigString()
58 auto id = index.data(EntityTreeModel::ItemIdRole).value<Item::Id>(); in indexToConfigString()
/dports/deskutils/kdepim-addons/kdepim-addons-21.12.3/plugins/plasma/pimeventsplugin/
H A Dpimcalendarsmodel.cpp36 mEtm = new Akonadi::EntityTreeModel(cr, this); in PimCalendarsModel()
37 mEtm->setItemPopulationStrategy(Akonadi::EntityTreeModel::NoItemPopulation); in PimCalendarsModel()
39 connect(mEtm, &Akonadi::EntityTreeModel::collectionTreeFetched, this, [this]() { in PimCalendarsModel()
70 …const auto &col = QSortFilterProxyModel::data(index, Akonadi::EntityTreeModel::CollectionRole).val… in data()
96 …const QModelIndex idx = Akonadi::EntityTreeModel::modelIndexForCollection(this, Akonadi::Collectio… in setChecked()
/dports/net/pimcommon/pimcommon-21.12.3/src/pimcommonakonadi/folderdialog/
H A Dcheckedcollectionwidget.cpp35 Akonadi::EntityTreeModel *mEntityTreeModel = nullptr;
54 d->mEntityTreeModel = new Akonadi::EntityTreeModel(monitor, this); in CheckedCollectionWidget()
56 d->mEntityTreeModel->setItemPopulationStrategy(Akonadi::EntityTreeModel::NoItemPopulation); in CheckedCollectionWidget()
90 Akonadi::EntityTreeModel *CheckedCollectionWidget::entityTreeModel() const in entityTreeModel()
/dports/deskutils/kdepim-addons/kdepim-addons-21.12.3/plugins/messageviewerconfigureplugins/foldersettings/
H A Dfoldersettingfilterproxymodel.cpp23 …const auto col = data(index, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>(… in data()
35 …const auto col = data(index, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>(… in flags()
52 …const auto collection = data(index, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Colle… in setData()
/dports/deskutils/kmail/kmail-21.12.3/agents/unifiedmailboxagent/
H A Dunifiedmailboxeditor.cpp43 …const auto col = data(index, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>(… in data()
55 …const auto col = data(index, Akonadi::EntityTreeModel::CollectionRole).value<Akonadi::Collection>(… in flags()
67 …const auto col = sourceModel()->data(sourceIndex, Akonadi::EntityTreeModel::CollectionRole).value<… in filterAcceptsRow()
130 …const auto index = Akonadi::EntityTreeModel::modelIndexForCollection(selectionModel->model(), Akon… in UnifiedMailboxEditor()
146 list << index.data(Akonadi::EntityTreeModel::CollectionIdRole).toLongLong(); in UnifiedMailboxEditor()

1234567