diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2019-02-06 10:47:49 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2019-02-14 10:39:15 +0000 |
commit | df867d86285c9c9115313c90d7d72ff9a245bce4 (patch) | |
tree | a78adbbcc39740746f82314b3b0782c7299d0b75 | |
parent | b00efbf0edd9b4bb206570f653f4451f3522961c (diff) |
QQuickTableView: clear cache before querying column widths/row heights
Otherwise, if we're unlucky, it's the stored column in the cache that
changes visibility. And unless we clear the cache, we'll not detect it.
Change-Id: I0933a7d6cd3056d7d3883bd032ea5f8fa048402e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/quick/items/qquicktableview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquicktableview.cpp b/src/quick/items/qquicktableview.cpp index b3305ccaeb..75cafbc1a0 100644 --- a/src/quick/items/qquicktableview.cpp +++ b/src/quick/items/qquicktableview.cpp @@ -706,6 +706,7 @@ void QQuickTableViewPrivate::syncLoadedTableRectFromLoadedTable() void QQuickTableViewPrivate::forceLayout() { columnRowPositionsInvalid = true; + clearEdgeSizeCache(); RebuildOptions rebuildOptions = RebuildOption::None; // Go through all columns from first to last, find the columns that used |