diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-07-30 11:31:25 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-08-01 07:14:45 +0000 |
commit | c6777035435f218adedf99d51d9136923151fbf0 (patch) | |
tree | da0ca8517409759fb3c2a1494ff49e7c0e0ad737 | |
parent | ae66f63390cf1165bba1d00e7b79b27d36498501 (diff) |
QmlDesigner: Explcitly set drag range for geometry propertiesv4.10.0-rc1
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 <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml | 4 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/SpinBox.qml | 2 |
2 files changed, 6 insertions, 0 deletions
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 |