aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrook Cronin <brook.cronin@qt.io>2023-11-08 13:48:08 +0100
committerBrook Cronin <brook.cronin@qt.io>2024-02-02 09:11:29 +0000
commit6c7af1b41b3e462621caebcf04addc4b1bf546af (patch)
tree31c428211f872866df386bc67f1ec3ef6eb82464
parentb894ae3d16dee1cb2d53d26c8e60cb3f6cc5b283 (diff)
Qml Designer: Add start and end angle properties to dial
Change-Id: I15621fef552816a018aa5adf285ad9a1261a9294 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/Controls/DialSpecifics.qml44
1 files changed, 44 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/Controls/DialSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/Controls/DialSpecifics.qml
index a8536e8ca3..92ab3a42ff 100644
--- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/Controls/DialSpecifics.qml
+++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/Controls/DialSpecifics.qml
@@ -105,6 +105,50 @@ Column {
}
PropertyLabel {
+ text: qsTr("Start angle")
+ tooltip: qsTr("This property holds the starting angle of the dial in degrees.")
+ visible: majorQtQuickVersion === 6 && minorQtQuickVersion >= 6
+ }
+
+ SecondColumnLayout {
+ SpinBox {
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
+ width: implicitWidth
+ maximumValue: backendValues.endAngle.value - 1
+ minimumValue: Math.min (-360, (backendValues.endAngle.value - 360))
+ decimals: 2
+ stepSize: 0.1
+ backendValue: backendValues.startAngle
+ visible: majorQtQuickVersion === 6 && minorQtQuickVersion >= 6
+ }
+
+ ExpandingSpacer {}
+ }
+
+ PropertyLabel {
+ text: qsTr("End angle")
+ tooltip: qsTr("This property holds the ending angle of the dial in degrees.")
+ visible: majorQtQuickVersion === 6 && minorQtQuickVersion >= 6
+ }
+
+ SecondColumnLayout {
+ SpinBox {
+ implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ + StudioTheme.Values.actionIndicatorWidth
+ width: implicitWidth
+ maximumValue: Math.min (720, (backendValues.startAngle.value + 360))
+ minimumValue: backendValues.startAngle.value + 1
+ decimals: 2
+ stepSize: 0.1
+ backendValue: backendValues.endAngle
+ visible: majorQtQuickVersion === 6 && minorQtQuickVersion >= 6
+ }
+
+ ExpandingSpacer {}
+ }
+
+ PropertyLabel {
text: qsTr("Snap mode")
tooltip: qsTr("Sets how the dial's handle snaps to the steps\n"
+ "defined in <b>Step size</b>.")