75
75
confirmRemoval: true
80
function getTime(timeString) {
81
var properTime = new Date()
82
properTime.setHours(timeString.split(":")[0])
83
properTime.setMinutes(timeString.split(":")[1])
84
properTime.setSeconds(0)
88
fontSize: units.dp(14)
89
periodFontSize: units.dp(10)
90
innerCircleWidth: units.gu(5)
93
analogTime: getTime(model.localTime)
80
96
anchors.centerIn: parent
101
localTimeVisual.flipClock()
105
Component.onCompleted: {
106
isDigital = clockModeDocument.contents.digitalMode ? true : false
107
if (clockModeDocument.contents.digitalMode) {
108
digitalModeLoader.setSource(
109
"../components/DigitalMode.qml",
111
"width": innerCircleWidth,
112
"timeFontSize": fontSize,
113
"timePeriodFontSize": periodFontSize
117
analogModeLoader.setSource(
118
"../components/AnalogMode.qml",
120
"width": innerCircleWidth