Make time picker animations better

This commit is contained in:
Stefano Moretti
2023-05-01 11:32:30 +02:00
parent 11606b8f39
commit 051e97c636
2 changed files with 83 additions and 24 deletions

View File

@ -32,7 +32,7 @@ Dialog {
focus: true
onOpened: timePicker.update()
onClosed: timePicker.pickMinutes = false
onClosed: timePicker.setPickMinutes(false)
on_IsLandscapeChanged: updateTimer.restart()
@ -91,7 +91,7 @@ Dialog {
}
MouseArea {
anchors.fill: parent
onClicked: timePicker.pickMinutes = false
onClicked: timePicker.setPickMinutes(false)
}
}
@ -111,7 +111,7 @@ Dialog {
}
MouseArea {
anchors.fill: parent
onClicked: timePicker.pickMinutes = true
onClicked: timePicker.setPickMinutes(true)
}
}
}