projects
/
harbour-pedalo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix landscape orientation
[harbour-pedalo.git]
/
qml
/
pages
/
DurationEditDialog.qml
diff --git
a/qml/pages/DurationEditDialog.qml
b/qml/pages/DurationEditDialog.qml
index
95e2dff
..
c1a577b
100644
(file)
--- a/
qml/pages/DurationEditDialog.qml
+++ b/
qml/pages/DurationEditDialog.qml
@@
-15,6
+15,9
@@
Dialog {
canAccept: true
canAccept: true
+ // The effective value will be restricted by ApplicationWindow.allowedOrientations
+ allowedOrientations: Orientation.All
+
SilicaFlickable {
anchors.fill: parent
contentHeight: column.height
SilicaFlickable {
anchors.fill: parent
contentHeight: column.height
@@
-34,7
+37,7
@@
Dialog {
width: parent.width
TimePicker {
id: timePicker
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
// otherwise in 12h mode this caused timer 00:00 to display as 12:00am
hourMode: DateTime.TwentyFourHours