aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/qqmltableinstancemodel_p.h
diff options
context:
space:
mode:
authorKari Hormi <kari.hormi@qt.io>2019-11-06 15:53:40 +0200
committerKari Hormi <kari.hormi@qt.io>2019-11-20 12:45:34 +0200
commitacb6ed0815f92588c3ff875a568e9561fe61218c (patch)
tree9e41e2ca844d2b8e2c20333410089c608b49c7fb /src/qmlmodels/qqmltableinstancemodel_p.h
parentaf090d8073a4352f6a92bbe2d015ae87476684c7 (diff)
TableView: use fetchMore() when scrolling to the end of the table
QQmlTableInstanceModel implements canFetchMore and fetchMore functions, but these are not called at any point in QQuickTableView. This change checks if additional data can be fetched when atYEndChanged signal is emitted. Fixes: QTBUG-78273 Change-Id: I49b41b09d9a218826b34f32cd9fe4724a6097b52 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/qmlmodels/qqmltableinstancemodel_p.h')
-rw-r--r--src/qmlmodels/qqmltableinstancemodel_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qmlmodels/qqmltableinstancemodel_p.h b/src/qmlmodels/qqmltableinstancemodel_p.h
index ce5a37bc98..1ea5ee7401 100644
--- a/src/qmlmodels/qqmltableinstancemodel_p.h
+++ b/src/qmlmodels/qqmltableinstancemodel_p.h
@@ -103,6 +103,9 @@ public:
bool isValid() const override { return true; }
+ bool canFetchMore() const { return m_adaptorModel.canFetchMore(); }
+ void fetchMore() { m_adaptorModel.fetchMore(); }
+
QVariant model() const;
void setModel(const QVariant &model);