aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-09-30 11:54:40 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-09-30 12:25:43 +0200
commitc6b5b14910876fa506f03509e3932104223c170e (patch)
treeb575a522e1a45098ab9deefe4cd67aa1a2c5e4cb
parentfbc629892461662a20e12c38f182fddb1fcc3a81 (diff)
Native style: don't use transient scrollbars
We don't want to hide the scrollbars on desktop when it's not moving. Change-Id: I6ce555b06a598560a7253e2b8e6db71405b9322b Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
-rw-r--r--src/imports/nativestyle/controls/DefaultScrollBar.qml2
-rw-r--r--tests/manual/nativestyle/TextAreas.qml2
-rw-r--r--tests/manual/nativestyle/main.qml2
3 files changed, 1 insertions, 5 deletions
diff --git a/src/imports/nativestyle/controls/DefaultScrollBar.qml b/src/imports/nativestyle/controls/DefaultScrollBar.qml
index 0e1b74dd..9965b8cb 100644
--- a/src/imports/nativestyle/controls/DefaultScrollBar.qml
+++ b/src/imports/nativestyle/controls/DefaultScrollBar.qml
@@ -51,7 +51,7 @@ T.ScrollBar {
font.pixelSize: __nativeBackground ? background.styleFont(control).pixelSize : undefined
- visible: policy === T.ScrollBar.AlwaysOn || (active && size < 1.0)
+ visible: policy === T.ScrollBar.AlwaysOn || size < 1.0
background: NativeStyle.ScrollBar {
control: control
diff --git a/tests/manual/nativestyle/TextAreas.qml b/tests/manual/nativestyle/TextAreas.qml
index 0e1573b0..f411c3bd 100644
--- a/tests/manual/nativestyle/TextAreas.qml
+++ b/tests/manual/nativestyle/TextAreas.qml
@@ -67,7 +67,6 @@ ControlContainer {
id: scrollView
width: 200
height: defaultTextArea.height
- ScrollBar.vertical.policy: ScrollBar.AlwaysOn
TextArea {
text: "Inside ScrollView - Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
@@ -104,7 +103,6 @@ ControlContainer {
ScrollView {
id: scrollView2
anchors.fill: parent
- ScrollBar.vertical.policy: ScrollBar.AlwaysOn
TextArea {
id: area2
diff --git a/tests/manual/nativestyle/main.qml b/tests/manual/nativestyle/main.qml
index f0575820..ef7c89a2 100644
--- a/tests/manual/nativestyle/main.qml
+++ b/tests/manual/nativestyle/main.qml
@@ -72,7 +72,6 @@ ApplicationWindow {
ScrollView {
contentWidth: width
clip: true
- ScrollBar.vertical.policy: ScrollBar.AlwaysOn
Column {
anchors.left: parent.left
@@ -99,7 +98,6 @@ ApplicationWindow {
ScrollView {
contentWidth: width
clip: true
- ScrollBar.vertical.policy: ScrollBar.AlwaysOn
Column {
anchors.left: parent.left