From e477d80bbbc7eb25371e2330ce36873b9ba3f76c Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 31 Oct 2019 17:49:08 +0100 Subject: [PATCH] [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 --- applets/digital-clock/package/contents/ui/configAppearance.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applets/digital-clock/package/contents/ui/configAppearance.qml b/applets/digital-clock/package/contents/ui/configAppearance.qml index 080bbf770..2f39ddfa3 100644 --- a/applets/digital-clock/package/contents/ui/configAppearance.qml +++ b/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("Time Format Documentation") + enabled: showDate.checked visible: cfg_dateFormat == "custom" wrapMode: Text.Wrap QtLayouts.Layout.preferredWidth: QtLayouts.Layout.maximumWidth