X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fpages%2FDurationEditDialog.qml;h=c1a577b9ac10f360dd521b48527b2cb487ca6aac;hp=95e2dfff3e64fabd23e4b8c49386d0ec9ac8000a;hb=b6fbaf91f247acb49e874b036d0df84f1850328a;hpb=e5b6de629d0585d29f0591deec4afec33f44f20c 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