summaryrefslogtreecommitdiff
path: root/src/controls/qquickmenu.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-09-25 18:02:54 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-09-26 08:49:14 +0000
commitcb029a36279a1b7d47ec4c58c7916c9b63615b57 (patch)
tree8ef21337a7b92154db973ccb1cee3df818c6d49b /src/controls/qquickmenu.cpp
parent1056eb37c970a7145755d0280f03d049d9a77bd5 (diff)
downloadqtquickcontrols-cb029a36279a1b7d47ec4c58c7916c9b63615b57.tar.gz
ScrollView: Defer calls to doLayout()
doLayout() updates the dimensions of the scroll view, and therefore can trigger the scroll bars to be shown or hidden. That, in turn, can trigger another call to doLayout(), resulting in binding loops. Avoid those by deferring the call. The scrollview tests are broken without this change because the binding loop prevents the scrollbars from being shown or hidden in some cases. The deferring necessitates a tryVerify(), but fixes the actual tests. Change-Id: I0dac0ba380240e025237f69c4d357d764a535c3d Fixes: QTBUG-50605 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/controls/qquickmenu.cpp')
0 files changed, 0 insertions, 0 deletions