Display overall statistics
[harbour-pedalo.git] / qml / pages / DurationEditDialog.qml
index 95e2dff..c4e256b 100644 (file)
@@ -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