summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.h')
-rw-r--r--share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.h b/share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.h
index f6a0ad59c2..b629356306 100644
--- a/share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.h
+++ b/share/qtcreator/templates/wizards/classes/itemmodel/tablemodel.h
@@ -29,6 +29,14 @@ public:
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
+@if %{DynamicFetch}
+ // Fetch data dynamically:
+ bool hasChildren(const QModelIndex &parent = QModelIndex()) const override;
+
+ bool canFetchMore(const QModelIndex &parent) const override;
+ void fetchMore(const QModelIndex &parent) override;
+
+@endif
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
@if %{Editable}