Commit graph

5 commits

Author SHA1 Message Date
Tasuku Suzuki
95d29e9b90
dial example: Restrict angle to the defined range and refine angle calculation (#7181)
- Enforce that the angle stays within the specified start and end angles.
- Transition from using the initial touch angle as a reference to using the previous angle.
2024-12-20 19:39:28 +02:00
Tasuku Suzuki
2edb59d71b
dial example: simplify source code (#7179)
- Eliminated `in` qualifier from properties not used as inputs for clarity.
- Removed the default lightOff state as it served no purpose.
- Removed Rectangles used as containers for simplification.
2024-12-20 09:22:38 +02:00
Tasuku Suzuki
8719c0e5ec
dial example: rotate dial only if initial touch is within its bounds (#7142)
Add a boundary check to ensure that rotation only occurs when the
first pointer contact is inside the circular dial area.
If the initial touch is outside, the dial remains stationary.

Mouse cursor is set properly to show current status.
2024-12-19 16:55:12 +02:00
Nigel Breslaw
a9c04f13e9
Simplify dial to use atan2 2024-09-17 09:05:38 +02:00
Olivier Goffart
890e63d352 dial example: move the files one directory down
There is only one directory alled "ui", so there isn't really need to have
this level of directory.
This aligns with other demo that don't have any source files

Also rename appwindow.slint to dial.slint
2024-09-14 18:37:17 +02:00
Renamed from examples/dial/ui/appwindow.slint (Browse further)