| 168 | } |
| 169 | |
| 170 | class EllipsisItem : public TreeItem |
| 171 | { |
| 172 | Q_OBJECT |
| 173 | public: |
| 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 | |
| 197 | void TreeItem::setHasMore(bool more) |
| 198 | { |
nothing calls this directly
no test coverage detected