aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktableview_p_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-07-29 11:10:24 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-07-30 09:35:11 +0000
commit4365c1ef47fc146b88f04b46ba40151e63471c55 (patch)
tree6933172b420545b19533cf9d1111118950c3e123 /src/quick/items/qquicktableview_p_p.h
parentd275b9f828f9a1a93c0188a347821ed6f7852bb8 (diff)
QQuickTableView: be more careful when calling updatePolish() directly
Like QQuickListView, QQuickTableView also calls updatePolish() directly for a smoother drag/flick experience. But this can easily result in recursive callbacks to viewportMoved() if the application, upon receiving signals, changes contentX/Y. So add some extra code to protect from this. Change-Id: Ie4b29bdcf4dc650d89759f9a8a1e3378074ade6e 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquicktableview_p_p.h b/src/quick/items/qquicktableview_p_p.h
index cb56ecc291..1fc73018e9 100644
--- a/src/quick/items/qquicktableview_p_p.h
+++ b/src/quick/items/qquicktableview_p_p.h
@@ -209,6 +209,7 @@ public:
bool tableRebuilding = false;
bool columnRowPositionsInvalid = false;
bool layoutWarningIssued = false;
+ bool polishing = false;
QJSValue rowHeightProvider;
QJSValue columnWidthProvider;