diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2019-03-29 15:33:58 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2019-04-24 13:33:59 +0000 |
commit | 679642fcfaac25bf56613df0bf25afa11ed0d01b (patch) | |
tree | 32193416a6ac4261d204ae41a5d1d05c2ba90028 /src/quick/items/qquicktableview_p_p.h | |
parent | b68554d4d453eab01203384f14dd2158e520ecd3 (diff) |
QQuickTableView: implement recursive updateTable()
Now that a TableView can be inside a syncView hierarchy, we
cannot update a table in isolation, but need to coordinate
this with the other views. It's especially important that
we update a parent syncView before a child syncView, to
ensure that the parent has calculated all the necessary
columns width and row heights. For that reason, we always
update the table views starting from the top.
Change-Id: Iba8ae7d28fa0bb2fbbad9f8fc7aa198e15b91872
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/items/qquicktableview_p_p.h')
-rw-r--r-- | src/quick/items/qquicktableview_p_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/items/qquicktableview_p_p.h b/src/quick/items/qquicktableview_p_p.h index c018356efa..13c69d0b43 100644 --- a/src/quick/items/qquicktableview_p_p.h +++ b/src/quick/items/qquicktableview_p_p.h @@ -310,6 +310,10 @@ public: inline int leftColumn() const { return loadedColumns.firstKey(); } inline int rightColumn() const { return loadedColumns.lastKey(); } + QQuickTableView *rootSyncView() const; + + bool updateTableRecursive(); + void updateTable(); void relayoutTable(); void relayoutTableItems(); |