From 50e9ef61c551ced6aea9505ee27ec66a27b55c33 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 29 Jul 2015 15:47:23 +0200 Subject: QmlDesigner: Enforce ScrollView to be non interactive On some platforms the style reports touch support and ScrollViews become flickable. This is not what user expect from a "normal desktop" application. Task-number: QTCREATORBUG-14818 Task-number: QTCREATORBUG-14822 Change-Id: Ie15fd66667dca1c0863a29e87ff76583d9aa3eee Reviewed-by: Tim Jenssen --- share/qtcreator/qmldesigner/common/DesignerScrollViewStyle.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/qtcreator/qmldesigner/common/DesignerScrollViewStyle.qml b/share/qtcreator/qmldesigner/common/DesignerScrollViewStyle.qml index 5bfd2c6183..634bd005ab 100644 --- a/share/qtcreator/qmldesigner/common/DesignerScrollViewStyle.qml +++ b/share/qtcreator/qmldesigner/common/DesignerScrollViewStyle.qml @@ -60,4 +60,8 @@ ScrollViewStyle { decrementControl: Item {} incrementControl: Item {} corner: Item {} + + //Even if the platform style reports touch support a scrollview should not be flickable. + Component.onCompleted: control.flickableItem.interactive = true + transientScrollBars: false } -- cgit v1.2.1