aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2019-02-28 14:24:04 +0100
committerAapo Keskimolo <aapo.keskimolo@qt.io>2019-03-05 12:04:03 +0000
commitff30fc5f5f637da6a06a33ae0e55d5e4b798099d (patch)
tree864327b54d6cddf1afb8cc63e91509e2a9380569 /.gitignore
parent9fdbdea176007ed7b470e317e9002aa77ddd4ead (diff)
QQuickScrollView: respect the content size set on/by the flickable
If the flickable inside a scrollview has an explicit content size assigned, or if the flickable was created by the application, then don't fall back to calculate the content size. The reason is that it should not try to change the content size of a flickable that is controlled by the application (or by the flickable itself, in the case of ListView, ScrollView and TextArea). Sometimes e.g ListView will report a negative contentWidth, which is not considered illegal. From before we used to just check if the child flickable had a negative content size, and if so, take that as a evidence that the flickable was owned by the scrollview. But with this patch, we instead add two extra variables that keeps explicit track of whether or not we should read the content size from the flickable, regardless of the values it might return. With the two new variables, we also no longer need the "ownsFlickable" property, as we can instead use the new variables to check for the same. Fixes: QTBUG-72536 Fixes: QTBUG-74000 Fixes: QTBUG-72940 Change-Id: Iec87cc953557bf8c1bdb32a3c11b721c607fc19a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions