From c6777035435f218adedf99d51d9136923151fbf0 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 30 Jul 2019 11:31:25 +0200 Subject: QmlDesigner: Explcitly set drag range for geometry properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default drag range is based on the minimum and maximum, but sicne those are huge we overide the default. Change-Id: Ibad785b475adfd92a78e6c5ff21fed2af21d637a Reviewed-by: Henning Gründl Reviewed-by: Thomas Hartmann --- .../qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml | 4 ++++ .../propertyEditorQmlSources/imports/HelperWidgets/SpinBox.qml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml index 36a46b72bb..166c963173 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml @@ -53,6 +53,7 @@ Section { maximumValue: 0xffff minimumValue: -0xffff decimals: 0 + realDragRange: 5000 } Item { @@ -70,6 +71,7 @@ Section { maximumValue: 0xffff minimumValue: -0xffff decimals: 0 + realDragRange: 5000 } ExpandingSpacer { @@ -92,6 +94,7 @@ Section { maximumValue: 0xffff minimumValue: 0 decimals: 0 + realDragRange: 5000 } Item { @@ -109,6 +112,7 @@ Section { maximumValue: 0xffff minimumValue: 0 decimals: 0 + realDragRange: 5000 } ExpandingSpacer { diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/SpinBox.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/SpinBox.qml index 2ec1052877..2333a194e7 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/SpinBox.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/SpinBox.qml @@ -41,6 +41,8 @@ Item { property alias backendValue: spinBox.backendValue property alias sliderIndicatorVisible: spinBox.sliderIndicatorVisible + property alias realDragRange: spinBox.realDragRange + width: 96 implicitHeight: spinBox.height -- cgit v1.2.3