summaryrefslogtreecommitdiffstats
path: root/src/controls/Styles
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@gmail.com>2014-04-02 15:04:11 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-04 10:11:30 +0200
commit783da20117857dbc840b9863f2cb4227773b338c (patch)
treeda23bb178dbe480ce839a270daed8df6ca8e5ffe /src/controls/Styles
parentcca3c68333431431aca9b904b6582de7220175b8 (diff)
Improve scrollbars on touch
Hide the scrollbar background which makes it look like a desktop scrollbar. Scrollbars are now by default non-interactive on touch. [ChangeLog][QtQuickControls][ScrollView] Scrollbars are now non-interactive on mobile/touch devices. Task-number: QTBUG-37387 Change-Id: I63b6db9309a6e33140de0d26c8d4fd3e1bcfb832 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/Styles')
-rw-r--r--src/controls/Styles/Base/ScrollViewStyle.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Styles/Base/ScrollViewStyle.qml b/src/controls/Styles/Base/ScrollViewStyle.qml
index a7dbcc520..1944ed43d 100644
--- a/src/controls/Styles/Base/ScrollViewStyle.qml
+++ b/src/controls/Styles/Base/ScrollViewStyle.qml
@@ -117,7 +117,7 @@ Style {
implicitHeight: Math.round(TextSingleton.implicitHeight)
clip: true
opacity: transientScrollBars ? 0.5 : 1.0
- visible: !transientScrollBars || sticky
+ visible: !Settings.hasTouchScreen && (!transientScrollBars || sticky)
Rectangle {
anchors.fill: parent
color: "#ddd"