aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxIndicator.qml10
1 files changed, 6 insertions, 4 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxIndicator.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxIndicator.qml
index 7cebe1cd26..0216bb20d9 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxIndicator.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxIndicator.qml
@@ -46,16 +46,18 @@ Rectangle {
color: StudioTheme.Values.themeControlBackground
border.width: 0
- onEnabledChanged: invalidateEnabled()
+ onEnabledChanged: syncEnabled()
onRealEnabledChanged: {
- invalidateEnabled()
- if (spinBoxIndicator.realEnabled === false)
+ syncEnabled()
+ if (spinBoxIndicator.realEnabled === false) {
pressAndHoldTimer.stop()
+ spinBoxIndicatorMouseArea.pressedAndHeld = false
+ }
}
// This function is meant to synchronize enabled with realEnabled to avoid
// the internal logic messing with the actual state.
- function invalidateEnabled() {
+ function syncEnabled() {
spinBoxIndicator.enabled = spinBoxIndicator.realEnabled
}