summaryrefslogtreecommitdiff
path: root/src/extras/Styles/Flat/GaugeStyle.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras/Styles/Flat/GaugeStyle.qml')
-rw-r--r--src/extras/Styles/Flat/GaugeStyle.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extras/Styles/Flat/GaugeStyle.qml b/src/extras/Styles/Flat/GaugeStyle.qml
index 1019f7ce..5e903360 100644
--- a/src/extras/Styles/Flat/GaugeStyle.qml
+++ b/src/extras/Styles/Flat/GaugeStyle.qml
@@ -127,7 +127,7 @@ Base.GaugeStyle {
// We don't want that, as we want the label's y pos to be at zero when it's not anchored.
// Using a binding here whose when property is true when control.orientation === Qt.Horizontal
// doesn't work.
- onOrientationChanged: textLabel.y = 0
+ function onOrientationChanged() { textLabel.y = 0 }
}
anchors.baseline: control.orientation === Qt.Vertical ? parent.verticalCenter : undefined
}