Fix landscape orientation
[harbour-pedalo.git] / qml / pages / DurationEditDialog.qml
index 95e2dff..c1a577b 100644 (file)
@@ -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