Commit e477d80b authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[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
parent 6671c13d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment