X-Git-Url: https://www.flypig.org.uk/git/?p=harbour-pedalo.git;a=blobdiff_plain;f=qml%2Fpages%2FDurationEditDialog.qml;h=c4e256be5eae1c91fff097745b8a5745dc83d33d;hp=95e2dfff3e64fabd23e4b8c49386d0ec9ac8000a;hb=5fc520bad80dccf9bf2e0f16552c9f2605417067;hpb=badbb9139e0e5b3bc114ae7c150e6d9ab5183566 diff --git a/qml/pages/DurationEditDialog.qml b/qml/pages/DurationEditDialog.qml index 95e2dff..c4e256b 100644 --- a/qml/pages/DurationEditDialog.qml +++ b/qml/pages/DurationEditDialog.qml @@ -11,10 +11,14 @@ Dialog { property alias minute: timePicker.minute property Item timePicker: timePicker + //: Can have two values: "LTR" if remaining time in timer item should be written in "[value] [unit]" order i.e. "2 min", or "RTL" i.e. right-to-left like in Arabic writing systems property bool leftToRight: qsTr("LTR") !== "RTL" canAccept: true + // The effective value will be restricted by ApplicationWindow.allowedOrientations + allowedOrientations: Orientation.All + SilicaFlickable { anchors.fill: parent contentHeight: column.height @@ -34,7 +38,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 @@ -42,7 +46,6 @@ Dialog { id: timerLabelColumn anchors.centerIn: parent - //: Can have two values: "LTR" if remaining time in timer item should be written in "[value] [unit]" order i.e. "2 min", or "RTL" i.e. right-to-left like in Arabic writing systems spacing: -Theme.paddingMedium Row { spacing: Theme.paddingSmall