diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.qml b/src/main.qml index a81f467..4cb01ae 100644 --- a/src/main.qml +++ b/src/main.qml @@ -65,6 +65,16 @@ Application { } } + function toHandsPosition(usec) { + var mod = Math.abs(usec) + return(Math.floor((mod % 60000) / 1000)*3) + } + + PhysicalHands { + minuteHandPosition: toHandsPosition(elapsed.value) + hourHandPosition: toHandsPosition(elapsed.value) + } + Item { id: mainPage anchors.fill: parent |