aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2024-01-25 13:44:56 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2024-01-25 11:54:47 +0000
commit5db5ade17d74a3c0bdcf6c7c659add1a07b3cea8 (patch)
tree2dca001d09f0abc52e6233838b1922cf59ae4e17
parent621d7044b4ce1e381bb20de5d57c96867e9d78e8 (diff)
EffectMaker: Round the integer slider value properly
Fixes: QDS-11772 Change-Id: I4d79c28784213695ea8e9a220f6fbd878bfb0cd4 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/effectMakerQmlSources/ValueInt.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/effectMakerQmlSources/ValueInt.qml b/share/qtcreator/qmldesigner/effectMakerQmlSources/ValueInt.qml
index 38a95f4970..054568a5da 100644
--- a/share/qtcreator/qmldesigner/effectMakerQmlSources/ValueInt.qml
+++ b/share/qtcreator/qmldesigner/effectMakerQmlSources/ValueInt.qml
@@ -35,8 +35,8 @@ Row {
to: uniformMaxValue
value: uniformValue
onMoved: {
- uniformValue = value
- spinBox.value = value
+ uniformValue = Math.round(value)
+ spinBox.value = Math.round(value)
}
}
}