X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=qml%2Fpages%2FDurationEditDialog.qml;h=c1a577b9ac10f360dd521b48527b2cb487ca6aac;hb=2661a17e25bcd4e94aeef1c6c136a6e5ba891f41;hp=95e2dfff3e64fabd23e4b8c49386d0ec9ac8000a;hpb=badbb9139e0e5b3bc114ae7c150e6d9ab5183566;p=harbour-pedalo.git diff --git a/qml/pages/DurationEditDialog.qml b/qml/pages/DurationEditDialog.qml index 95e2dff..c1a577b 100644 --- a/qml/pages/DurationEditDialog.qml +++ b/qml/pages/DurationEditDialog.qml @@ -15,6 +15,9 @@ Dialog { canAccept: true + // The effective value will be restricted by ApplicationWindow.allowedOrientations + allowedOrientations: Orientation.All + SilicaFlickable { anchors.fill: parent contentHeight: column.height @@ -34,7 +37,7 @@ Dialog { width: parent.width TimePicker { id: timePicker - x: isPortrait ? (column.width-width)/2 : Theme.horizontalPageMargin + anchors.horizontalCenter: parent.horizontalCenter // otherwise in 12h mode this caused timer 00:00 to display as 12:00am hourMode: DateTime.TwentyFourHours