Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/configAppearance.qml
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Line(s) | 183 | QtControls.Label { | |||
---|---|---|---|---|---|
186 | text: Qt.formatDate(new Date(), cfg_dateFormat === "custom" ? customDateFormat.text | 186 | text: Qt.formatDate(new Date(), cfg_dateFormat === "custom" ? customDateFormat.text | ||
187 | : dateFormat.model[dateFormat.currentIndex].format) | 187 | : dateFormat.model[dateFormat.currentIndex].format) | ||
188 | } | 188 | } | ||
189 | } | 189 | } | ||
190 | 190 | | |||
191 | QtControls.TextField { | 191 | QtControls.TextField { | ||
192 | id: customDateFormat | 192 | id: customDateFormat | ||
193 | QtLayouts.Layout.fillWidth: true | 193 | QtLayouts.Layout.fillWidth: true | ||
194 | enabled: showDate.checked | ||||
194 | visible: cfg_dateFormat == "custom" | 195 | visible: cfg_dateFormat == "custom" | ||
195 | } | 196 | } | ||
196 | 197 | | |||
197 | QtControls.Label { | 198 | QtControls.Label { | ||
198 | text: i18n("<a href=\"http://doc.qt.io/qt-5/qml-qtqml-qt.html#formatDateTime-method\">Time Format Documentation</a>") | 199 | text: i18n("<a href=\"http://doc.qt.io/qt-5/qml-qtqml-qt.html#formatDateTime-method\">Time Format Documentation</a>") | ||
200 | enabled: showDate.checked | ||||
199 | visible: cfg_dateFormat == "custom" | 201 | visible: cfg_dateFormat == "custom" | ||
200 | wrapMode: Text.Wrap | 202 | wrapMode: Text.Wrap | ||
201 | QtLayouts.Layout.preferredWidth: QtLayouts.Layout.maximumWidth | 203 | QtLayouts.Layout.preferredWidth: QtLayouts.Layout.maximumWidth | ||
202 | QtLayouts.Layout.maximumWidth: units.gridUnit * 16 | 204 | QtLayouts.Layout.maximumWidth: units.gridUnit * 16 | ||
203 | 205 | | |||
204 | onLinkActivated: Qt.openUrlExternally(link) | 206 | onLinkActivated: Qt.openUrlExternally(link) | ||
205 | MouseArea { | 207 | MouseArea { | ||
206 | anchors.fill: parent | 208 | anchors.fill: parent | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |