diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-10-13 16:27:13 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-10-14 13:38:22 +0200 |
commit | 0a48787cef9c37a4607f2158abebaa23cbf9ea59 (patch) | |
tree | 0cecd7ace70295b099f1a6d8d46101714601e703 /tests | |
parent | ea96b511924399c6fd4e5bcb6a1f14f89c117a4a (diff) |
ScrollView: always clip implicitly created Flickable
We almost always want to clip the flickable so that flickable
contents doesn't show up outside the scrollview. The only time
this is not really needed, is when the scrollview covers the whole
window and the scrollbars are transient. But for that corner case, if
this optimization is needed, the user can simply create his own flickable
child inside the scrollview, and control clipping on it explicit.
[ChangeLog][ScrollView] ScrollView now clips its contents by default.
Change-Id: I44bd7a8c397b90e14d0b9d5db8ec6523da205648
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/nativestyle/main.qml | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/manual/nativestyle/main.qml b/tests/manual/nativestyle/main.qml index 5e75e7a3..c1f02411 100644 --- a/tests/manual/nativestyle/main.qml +++ b/tests/manual/nativestyle/main.qml @@ -71,7 +71,6 @@ ApplicationWindow { ScrollView { contentWidth: width - ScrollBar.vertical.width - clip: true Column { anchors.left: parent.left @@ -97,7 +96,6 @@ ApplicationWindow { ScrollView { contentWidth: width - ScrollBar.vertical.width - clip: true Column { anchors.left: parent.left |