[Digital Clock] Disable custom format input when date option is unchecked

The ComboBox was disabled in this case but not the other options.

Differential Revision: https://phabricator.kde.org/D25096
wilder-5.18
Kai Uwe Broulik 6 years ago
parent 6671c13d4c
commit e477d80bbb
  1. 2
      applets/digital-clock/package/contents/ui/configAppearance.qml

@ -191,11 +191,13 @@ QtLayouts.ColumnLayout {
QtControls.TextField {
id: customDateFormat
QtLayouts.Layout.fillWidth: true
enabled: showDate.checked
visible: cfg_dateFormat == "custom"
}
QtControls.Label {
text: i18n("<a href=\"http://doc.qt.io/qt-5/qml-qtqml-qt.html#formatDateTime-method\">Time Format Documentation</a>")
enabled: showDate.checked
visible: cfg_dateFormat == "custom"
wrapMode: Text.Wrap
QtLayouts.Layout.preferredWidth: QtLayouts.Layout.maximumWidth

Loading…
Cancel
Save