Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/CalendarView.qml
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Line(s) | 134 | PlasmaExtras.Heading { | |||
---|---|---|---|---|---|
136 | anchors { | 136 | anchors { | ||
137 | top: parent.top | 137 | top: parent.top | ||
138 | left: dayLabel.right | 138 | left: dayLabel.right | ||
139 | right: parent.right | 139 | right: parent.right | ||
140 | leftMargin: spacing / 2 | 140 | leftMargin: spacing / 2 | ||
141 | } | 141 | } | ||
142 | level: 1 | 142 | level: 1 | ||
143 | elide: Text.ElideRight | 143 | elide: Text.ElideRight | ||
144 | text: agenda.dateString("dddd") | 144 | text: uiLocale.standaloneDayName(monthView.currentDate.getDay()) | ||
145 | } | 145 | } | ||
146 | PlasmaComponents.Label { | 146 | PlasmaComponents.Label { | ||
147 | id: dateHeading | 147 | id: dateHeading | ||
148 | anchors { | 148 | anchors { | ||
149 | top: dayHeading.bottom | 149 | top: dayHeading.bottom | ||
150 | left: dayLabel.right | 150 | left: dayLabel.right | ||
151 | right: parent.right | 151 | right: parent.right | ||
152 | leftMargin: spacing / 2 | 152 | leftMargin: spacing / 2 | ||
153 | } | 153 | } | ||
154 | elide: Text.ElideRight | 154 | elide: Text.ElideRight | ||
155 | text: Qt.locale().standaloneMonthName(monthView.currentDate.getMonth()) | 155 | text: uiLocale.standaloneMonthName(monthView.currentDate.getMonth()) | ||
156 | + agenda.dateString(" yyyy") | 156 | + agenda.dateString(" yyyy") | ||
157 | } | 157 | } | ||
158 | 158 | | |||
159 | TextMetrics { | 159 | TextMetrics { | ||
160 | id: dateLabelMetrics | 160 | id: dateLabelMetrics | ||
161 | 161 | | |||
162 | // Date/time are arbitrary values with all parts being two-digit | 162 | // Date/time are arbitrary values with all parts being two-digit | ||
163 | readonly property string timeString: Qt.formatTime(new Date(2000, 12, 12, 12, 12, 12, 12)) | 163 | readonly property string timeString: Qt.formatTime(new Date(2000, 12, 12, 12, 12, 12, 12)) | ||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |