diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2023-05-24 17:44:41 +0200 |
---|---|---|
committer | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2023-05-26 10:03:00 +0200 |
commit | 064aa8127ca4be856f573c25d94d0cf86215a1c4 (patch) | |
tree | 3efe5d63f8c48cea7b819824c4a1f8e6b60c76a7 /examples/quick/customitems/dialcontrol/Dial.qml | |
parent | bd916dee64cf2bc710227fc2eb4231c68eaab626 (diff) |
customitems examples: adhere to guidelines
They were in a pretty good state already.
This patch simply makes some minor tweaks,
based on our own guidelines for examples.
The tweaks include, but are not limited to:
- PRIVATE linkage
- WIN32 and MACOSX_BUNDLE in qt_add_executable()
- Remove unused #include
- Use qsTr()
- Remove warnings.
Pick-to: 6.5
Change-Id: Ie4d50d4e2134b7b373bdf1ba38779d3052165286
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quick/customitems/dialcontrol/Dial.qml')
-rw-r--r-- | examples/quick/customitems/dialcontrol/Dial.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/customitems/dialcontrol/Dial.qml b/examples/quick/customitems/dialcontrol/Dial.qml index 7e3b8cbd87..3b9692cc91 100644 --- a/examples/quick/customitems/dialcontrol/Dial.qml +++ b/examples/quick/customitems/dialcontrol/Dial.qml @@ -32,7 +32,7 @@ Item { id: needleRotation origin.x: 5; origin.y: 65 //! [needle angle] - angle: Math.min(Math.max(-130, root.value*2.6 - 130), 133) + angle: Math.min(Math.max(-130, root.value * 2.6 - 130), 133) Behavior on angle { SpringAnimation { spring: 1.4 |