diff options
author | Kari Hormi <kari.hormi@qt.io> | 2019-11-06 15:53:40 +0200 |
---|---|---|
committer | Kari Hormi <kari.hormi@qt.io> | 2019-11-20 12:45:34 +0200 |
commit | acb6ed0815f92588c3ff875a568e9561fe61218c (patch) | |
tree | 9e41e2ca844d2b8e2c20333410089c608b49c7fb /src/quick/items/qquicktableview_p_p.h | |
parent | af090d8073a4352f6a92bbe2d015ae87476684c7 (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/quick/items/qquicktableview_p_p.h')
-rw-r--r-- | src/quick/items/qquicktableview_p_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquicktableview_p_p.h b/src/quick/items/qquicktableview_p_p.h index 5f53420506..ec043f5e7e 100644 --- a/src/quick/items/qquicktableview_p_p.h +++ b/src/quick/items/qquicktableview_p_p.h @@ -426,6 +426,8 @@ public: void setLocalViewportY(qreal contentY); void syncViewportPosRecursive(); + void fetchMoreData(); + void _q_componentFinalized(); void registerCallbackWhenBindingsAreEvaluated(); |