Home
last modified time | relevance | path

Searched refs:QueryTreeModelBase (Results 1 – 25 of 32) sorted by relevance

12

/dports/deskutils/zanshin/zanshin-21.12.3/src/presentation/
H A Dquerytreemodelbase.cpp101 QueryTreeModelBase::QueryTreeModelBase(QueryTreeNodeBase *rootNode, QObject *parent) in QueryTreeModelBase() function in QueryTreeModelBase
108 QueryTreeModelBase::~QueryTreeModelBase() in ~QueryTreeModelBase()
113 QHash<int, QByteArray> QueryTreeModelBase::roleNames() const in roleNames()
122 Qt::ItemFlags QueryTreeModelBase::flags(const QModelIndex &index) const in flags()
145 QModelIndex QueryTreeModelBase::parent(const QModelIndex &index) const in parent()
154 int QueryTreeModelBase::rowCount(const QModelIndex &index) const in rowCount()
159 int QueryTreeModelBase::columnCount(const QModelIndex &) const in columnCount()
217 QStringList QueryTreeModelBase::mimeTypes() const in mimeTypes()
223 Qt::DropActions QueryTreeModelBase::supportedDragActions() const in supportedDragActions()
228 Qt::DropActions QueryTreeModelBase::supportedDropActions() const in supportedDropActions()
[all …]
H A Dquerytreemodelbase.h16 class QueryTreeModelBase; variable
21 QueryTreeNodeBase(QueryTreeNodeBase *parent, QueryTreeModelBase *model);
49 QueryTreeModelBase *m_model;
52 class QueryTreeModelBase : public QAbstractItemModel
67 ~QueryTreeModelBase();
85 explicit QueryTreeModelBase(QueryTreeNodeBase *rootNode,
H A Davailablesourcesmodel.cpp65 && role != QueryTreeModelBase::IconNameRole in createSourceListModel()
66 && role != QueryTreeModelBase::IsDefaultRole) { in createSourceListModel()
72 } else if (role == Qt::DecorationRole || role == QueryTreeModelBase::IconNameRole) { in createSourceListModel()
84 } else if (role == QueryTreeModelBase::IsDefaultRole) { in createSourceListModel()
120 auto source = index.data(QueryTreeModelBase::ObjectRole).value<Domain::DataSource::Ptr>(); in setDefaultItem()
H A Dpagemodel.cpp87 case Presentation::QueryTreeModelBase::IsChildRole: in defaultTaskData()
89 case Presentation::QueryTreeModelBase::ProjectRole: in defaultTaskData()
97 case Presentation::QueryTreeModelBase::DataSourceRole: in defaultTaskData()
105 case Presentation::QueryTreeModelBase::ContextListRole: in defaultTaskData()
H A Dquerytreenode.h35 QueryTreeNode(const ItemType &item, QueryTreeNodeBase *parentNode, QueryTreeModelBase *model, in QueryTreeNode()
49 QueryTreeNode(const ItemType &item, QueryTreeNodeBase *parentNode, QueryTreeModelBase *model, in QueryTreeNode()
71 if (role == QueryTreeModelBase::ObjectRole) in data()
91 void init(QueryTreeModelBase *model, const QueryGenerator &queryGenerator) in init()
H A Dquerytreemodel.h20 class QueryTreeModel : public QueryTreeModelBase
37 : QueryTreeModelBase(new QueryTreeNode<ItemType, AdditionalInfo>(ItemType(), nullptr, this, in QueryTreeModelBase() function
52 : QueryTreeModelBase(new QueryTreeNode<ItemType, AdditionalInfo>(ItemType(), nullptr, this, in QueryTreeModelBase() function
H A Dtaskfilterproxymodel.cpp96 const auto task = index.data(QueryTreeModelBase::ObjectRole).value<Domain::Task::Ptr>(); in filterAcceptsRow()
128 const auto leftTask = left.data(QueryTreeModelBase::ObjectRole).value<Domain::Task::Ptr>(); in lessThan()
129 const auto rightTask = right.data(QueryTreeModelBase::ObjectRole).value<Domain::Task::Ptr>(); in lessThan()
H A Dinboxpagemodel.cpp28 const auto parentData = parentIndex.data(QueryTreeModelBase::ObjectRole); in addItem()
42 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in removeItem()
51 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in promoteItem()
H A Dworkdaypagemodel.cpp33 const auto parentData = parentIndex.data(QueryTreeModelBase::ObjectRole); in addItem()
49 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in removeItem()
59 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in promoteItem()
H A Dalltaskspagemodel.cpp28 const auto parentData = parentIndex.data(QueryTreeModelBase::ObjectRole); in addItem()
42 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in removeItem()
52 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in promoteItem()
H A Dprojectpagemodel.cpp39 const auto parentData = parentIndex.data(QueryTreeModelBase::ObjectRole); in addItem()
54 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in removeItem()
63 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in promoteItem()
H A Dcontextpagemodel.cpp46 const auto parentData = parentIndex.data(QueryTreeModelBase::ObjectRole); in addItem()
61 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in removeItem()
70 QVariant data = index.data(QueryTreeModelBase::ObjectRole); in promoteItem()
H A Davailablepagesmodel.cpp69 QObjectPtr object = index.data(QueryTreeModelBase::ObjectRole).value<QObjectPtr>(); in createPageForIndex()
130 QObjectPtr object = index.data(QueryTreeModelBase::ObjectRole).value<QObjectPtr>(); in removeItem()
199 && role != QueryTreeModelBase::IconNameRole) { in createPageListModel()
215 } else if (role == Qt::DecorationRole || role == QueryTreeModelBase::IconNameRole) { in createPageListModel()
/dports/deskutils/zanshin/zanshin-21.12.3/tests/units/presentation/
H A Dalltaskspagemodeltest.cpp95 …auto task1 = model->data(task1Index, Presentation::QueryTreeModelBase::ObjectRole).value<Domain::T… in shouldListAllTasksInCentralListModel()
137 QVERIFY(model->data(task1Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListAllTasksInCentralListModel()
138 QVERIFY(model->data(task2Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListAllTasksInCentralListModel()
139 …QCOMPARE(model->data(task1Index, Presentation::QueryTreeModelBase::ProjectRole).toString(), QStrin… in shouldListAllTasksInCentralListModel()
140 …QCOMPARE(model->data(task2Index, Presentation::QueryTreeModelBase::ProjectRole).toString(), QStrin… in shouldListAllTasksInCentralListModel()
141 … QCOMPARE(model->data(task1Index, Presentation::QueryTreeModelBase::IsChildRole).toBool(), false); in shouldListAllTasksInCentralListModel()
142 … QCOMPARE(model->data(task2Index, Presentation::QueryTreeModelBase::IsChildRole).toBool(), false); in shouldListAllTasksInCentralListModel()
143 … QVERIFY(!model->data(childTask11Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListAllTasksInCentralListModel()
144 … QVERIFY(!model->data(childTask12Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListAllTasksInCentralListModel()
145 …QCOMPARE(model->data(childTask11Index, Presentation::QueryTreeModelBase::IsChildRole).toBool(), tr… in shouldListAllTasksInCentralListModel()
[all …]
H A Davailablesourcesmodeltest.cpp148 …QCOMPARE(model->data(source1Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), sou… in shouldListAvailableSources()
149 …QCOMPARE(model->data(source2Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), QSt… in shouldListAvailableSources()
150 …QCOMPARE(model->data(source3Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), QSt… in shouldListAvailableSources()
153 …QCOMPARE(model->data(source1Index, Presentation::QueryTreeModelBase::IsDefaultRole).toBool(), fals… in shouldListAvailableSources()
154 …QCOMPARE(model->data(source2Index, Presentation::QueryTreeModelBase::IsDefaultRole).toBool(), true… in shouldListAvailableSources()
155 …QCOMPARE(model->data(source3Index, Presentation::QueryTreeModelBase::IsDefaultRole).toBool(), fals… in shouldListAvailableSources()
156 …QCOMPARE(model->data(source4Index, Presentation::QueryTreeModelBase::IsDefaultRole).toBool(), fals… in shouldListAvailableSources()
179 …QCOMPARE(model->data(source1Index, Presentation::QueryTreeModelBase::IsDefaultRole).toBool(), fals… in shouldListAvailableSources()
180 …QCOMPARE(model->data(source2Index, Presentation::QueryTreeModelBase::IsDefaultRole).toBool(), fals… in shouldListAvailableSources()
181 …QCOMPARE(model->data(source3Index, Presentation::QueryTreeModelBase::IsDefaultRole).toBool(), fals… in shouldListAvailableSources()
[all …]
H A Dinboxpagemodeltest.cpp89 …auto rootTask = model->data(rootTaskIndex, Presentation::QueryTreeModelBase::ObjectRole).value<Dom… in shouldListInboxInCentralListModel()
90 …auto childTask = model->data(childTaskIndex, Presentation::QueryTreeModelBase::ObjectRole).value<D… in shouldListInboxInCentralListModel()
139 …sk = model->data(model->index(0, 0, childTaskIndex), Presentation::QueryTreeModelBase::ObjectRole)… in shouldListInboxInCentralListModel()
159 …auto task3 = model->data(model->index(1, 0), Presentation::QueryTreeModelBase::ObjectRole).value<D… in shouldListInboxInCentralListModel()
162 …auto task4 = model->data(model->index(2, 0), Presentation::QueryTreeModelBase::ObjectRole).value<D… in shouldListInboxInCentralListModel()
204 …auto taskInModel = model->data(model->index(0, 0), Presentation::QueryTreeModelBase::ObjectRole).v… in shouldAddTasksInInbox()
243 …Model = model->data(model->index(0, 0, parentIndex), Presentation::QueryTreeModelBase::ObjectRole)… in shouldAddChildTask()
425 …auto rootTask = model->data(index, Presentation::QueryTreeModelBase::ObjectRole).value<Domain::Tas… in shouldGetAnErrorMessageWhenUpdateTaskFailed()
462 …auto task2 = model->data(model->index(1, 0), Presentation::QueryTreeModelBase::ObjectRole).value<D… in shouldGetAnErrorMessageWhenAssociateTaskFailed()
463 …auto task3 = model->data(model->index(2, 0), Presentation::QueryTreeModelBase::ObjectRole).value<D… in shouldGetAnErrorMessageWhenAssociateTaskFailed()
[all …]
H A Dworkdaypagemodeltest.cpp159 QVERIFY(model->data(task1Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListWorkdayInCentralListModel()
160 QVERIFY(model->data(task2Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListWorkdayInCentralListModel()
161 …QCOMPARE(model->data(task1Index, Presentation::QueryTreeModelBase::ProjectRole).toString(), QStrin… in shouldListWorkdayInCentralListModel()
162 …QCOMPARE(model->data(task2Index, Presentation::QueryTreeModelBase::ProjectRole).toString(), QStrin… in shouldListWorkdayInCentralListModel()
163 … QCOMPARE(model->data(task1Index, Presentation::QueryTreeModelBase::IsChildRole).toBool(), false); in shouldListWorkdayInCentralListModel()
164 … QCOMPARE(model->data(task2Index, Presentation::QueryTreeModelBase::IsChildRole).toBool(), false); in shouldListWorkdayInCentralListModel()
165 … QVERIFY(!model->data(childTask11Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListWorkdayInCentralListModel()
166 … QVERIFY(!model->data(childTask12Index, Presentation::QueryTreeModelBase::ProjectRole).isValid()); in shouldListWorkdayInCentralListModel()
167 …QCOMPARE(model->data(childTask11Index, Presentation::QueryTreeModelBase::IsChildRole).toBool(), tr… in shouldListWorkdayInCentralListModel()
168 …QCOMPARE(model->data(childTask12Index, Presentation::QueryTreeModelBase::IsChildRole).toBool(), tr… in shouldListWorkdayInCentralListModel()
H A Davailablepagesmodeltest.cpp197 …QCOMPARE(model->data(inboxIndex, Presentation::QueryTreeModelBase::IconNameRole).toString(), QStri… in shouldListAvailablePages()
198 …QCOMPARE(model->data(workdayIndex, Presentation::QueryTreeModelBase::IconNameRole).toString(), QSt… in shouldListAvailablePages()
199 …QCOMPARE(model->data(projectsIndex, Presentation::QueryTreeModelBase::IconNameRole).toString(), QS… in shouldListAvailablePages()
200 …QCOMPARE(model->data(source1Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), QSt… in shouldListAvailablePages()
201 …QCOMPARE(model->data(project11Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), Q… in shouldListAvailablePages()
202 …QCOMPARE(model->data(project12Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), Q… in shouldListAvailablePages()
203 …QCOMPARE(model->data(source2Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), QSt… in shouldListAvailablePages()
206 …QCOMPARE(model->data(contextsIndex, Presentation::QueryTreeModelBase::IconNameRole).toString(), QS… in shouldListAvailablePages()
207 …QCOMPARE(model->data(context1Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), QS… in shouldListAvailablePages()
208 …QCOMPARE(model->data(context2Index, Presentation::QueryTreeModelBase::IconNameRole).toString(), QS… in shouldListAvailablePages()
[all …]
/dports/deskutils/zanshin/zanshin-21.12.3/src/widgets/
H A Ditemdelegate.cpp36 const auto projectInfo = index.data(Presentation::QueryTreeModelBase::ProjectRole); in sizeHint()
37 const auto dataSourceInfo = index.data(Presentation::QueryTreeModelBase::DataSourceRole); in sizeHint()
38 const auto contextListInfo = index.data(Presentation::QueryTreeModelBase::ContextListRole); in sizeHint()
49 const auto data = index.data(Presentation::QueryTreeModelBase::ObjectRole); in paint()
65 const auto projectInfo = index.data(Presentation::QueryTreeModelBase::ProjectRole); in paint()
66 const auto dataSourceInfo = index.data(Presentation::QueryTreeModelBase::DataSourceRole); in paint()
67 const auto contextListInfo = index.data(Presentation::QueryTreeModelBase::ContextListRole); in paint()
H A Dnameanddatasourcedialog.cpp33 auto source = sourceIndex.data(Presentation::QueryTreeModelBase::ObjectRole) in filterAcceptsRow()
72 Presentation::QueryTreeModelBase::ObjectRole) in accept()
88 if (index.data(Presentation::QueryTreeModelBase::IsDefaultRole).toBool()) { in setDataSourcesModel()
108 Presentation::QueryTreeModelBase::ObjectRole) in onUserInputChanged()
H A Ddatasourcedelegate.cpp28 const auto isDefault = index.data(Presentation::QueryTreeModelBase::IsDefaultRole).toBool(); in paint()
H A Dpageview.cpp409 const auto data = currentIndex.data(Presentation::QueryTreeModelBase::ObjectRole); in onRemoveItemRequested()
463 auto data = current.data(Presentation::QueryTreeModelBase::ObjectRole); in onCurrentChanged()
494 const auto data = current.data(Presentation::QueryTreeModelBase::ObjectRole); in currentTask()
H A Davailablepagesview.cpp219 const auto object = current.data(QueryTreeModelBase::ObjectRole).value<QObjectPtr>(); in onCurrentChanged()
259 QObjectPtr object = current.data(QueryTreeModelBase::ObjectRole).value<QObjectPtr>(); in onRemoveTriggered()
/dports/deskutils/zanshin/zanshin-21.12.3/tests/units/widgets/
H A Dnameanddatasourcedialogtest.cpp70 item->setData(QVariant::fromValue(source), Presentation::QueryTreeModelBase::ObjectRole); in createSourceItem()
79 …auto source = item->data(Presentation::QueryTreeModelBase::ObjectRole).value<Domain::DataSource::P… in createTaskSourceItem()
87 item->setData(true, Presentation::QueryTreeModelBase::IsDefaultRole); in createDefaultSourceItem()
162 ->data(Presentation::QueryTreeModelBase::ObjectRole) in shouldProvideUserInputWhenAccepted()
H A Davailablesourcesviewtest.cpp144 itemA->setData(QVariant::fromValue(sourceA), Presentation::QueryTreeModelBase::ObjectRole); in shouldSetSelectedAsDefault()
150 itemB->setData(QVariant::fromValue(sourceB), Presentation::QueryTreeModelBase::ObjectRole); in shouldSetSelectedAsDefault()
156 itemC->setData(QVariant::fromValue(sourceC), Presentation::QueryTreeModelBase::ObjectRole); in shouldSetSelectedAsDefault()

12