From 260d323a85ea01a6dcf95da17f161f1ec7466391 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Thu, 21 Oct 2021 15:16:57 +0200 Subject: [PATCH] QmlDesigner: Fix GradientPropertySpinBox dragging Task-number: QDS-3081 Change-Id: Ibcd7d79fbff42bb41a009de37f7200aa50b56827 Reviewed-by: Thomas Hartmann --- .../imports/HelperWidgets/GradientPropertySpinBox.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml index 65b6c14c73d..07cf70265b1 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/GradientPropertySpinBox.qml @@ -33,13 +33,13 @@ Item { property string propertyName property alias decimals: spinBox.decimals - property alias value: spinBox.realValue - property alias minimumValue: spinBox.realFrom property alias maximumValue: spinBox.realTo property alias stepSize: spinBox.realStepSize + property alias pixelsPerUnit: spinBox.pixelsPerUnit + width: 90 implicitHeight: spinBox.height @@ -52,6 +52,8 @@ Item { StudioControls.RealSpinBox { id: spinBox + __devicePixelRatio: devicePixelRatio() + width: wrapper.width actionIndicatorVisible: false