MCPcopy Create free account
hub / github.com/KDE/kdevelop / EllipsisItem

Class EllipsisItem

kdevplatform/debugger/util/treeitem.cpp:170–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170class EllipsisItem : public TreeItem
171{
172 Q_OBJECT
173public:
174 EllipsisItem(TreeModel *model, TreeItem *parent)
175 : TreeItem(model, parent)
176 {
177 const int dataCount = model->columnCount(QModelIndex());
178 QVector<QVariant> data;
179 data.reserve(dataCount);
180 data.push_back(QVariant(QStringLiteral("...")));
181 for (int i = 1; i < dataCount; ++i)
182 data.push_back(QString());
183 setData(data);
184 }
185
186 void clicked() override
187 {
188 qCDebug(DEBUGGER) << "Ellipsis item clicked";
189 /* FIXME: restore
190 Q_ASSERT (parentItem->hasMore()); */
191 parentItem->fetchMoreChildren();
192 }
193
194 void fetchMoreChildren() override {}
195};
196
197void TreeItem::setHasMore(bool more)
198{

Callers

nothing calls this directly

Calls 7

TreeItemClass · 0.70
QModelIndexClass · 0.50
QVariantClass · 0.50
QStringClass · 0.50
columnCountMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected