2 import Sailfish.Silica 1.0
6 // Amended version of /usr/share/jolla-clock/pages/ClockEditDialog.qml
10 property alias hour: timePicker.hour
11 property alias minute: timePicker.minute
13 property Item timePicker: timePicker
14 property bool leftToRight: qsTr("LTR") !== "RTL"
20 contentHeight: column.height
21 flickableDirection: Flickable.VerticalFlick
27 spacing: Theme.paddingLarge
33 height: childrenRect.height
37 x: isPortrait ? (column.width-width)/2 : Theme.horizontalPageMargin
38 // otherwise in 12h mode this caused timer 00:00 to display as 12:00am
39 hourMode: DateTime.TwentyFourHours
43 anchors.centerIn: parent
45 //: 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
46 spacing: -Theme.paddingMedium
48 spacing: Theme.paddingSmall
49 anchors.horizontalCenter: parent.horizontalCenter
50 layoutDirection: leftToRight ? Qt.LeftToRight : Qt.RightToLeft
53 text: timePicker.hour.toLocaleString()
54 font.pixelSize: Theme.fontSizeHuge
55 height: Math.min(implicitHeight, (timePicker.height*0.4 - timerLabelColumn.spacing)/2)
56 fontSizeMode: Text.VerticalFit
60 //: "Hour abbrevation. Should be short form if possible."
62 anchors.baseline: hours.baseline
67 spacing: Theme.paddingSmall
68 anchors.horizontalCenter: parent.horizontalCenter
69 layoutDirection: leftToRight ? Qt.LeftToRight : Qt.RightToLeft
72 text: timePicker.minute.toLocaleString()
73 font.pixelSize: Theme.fontSizeHuge
74 height: Math.min(implicitHeight, (timePicker.height*0.4 - timerLabelColumn.spacing)/2)
75 fontSizeMode: Text.VerticalFit
79 //: "Minute abbrevation. Should be short form if possible."
81 anchors.baseline: minutes.baseline
82 verticalAlignment: Text.AlignBottom