Commit 390d8b37 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

[timer applet] Move focus to text input field if enabled by checkbox click

parent a8d0bde7
......@@ -41,6 +41,11 @@ QtLayouts.ColumnLayout {
QtControls.CheckBox {
id: runCommand
text: i18nc("@option:check", "Execute command")
onClicked: {
if (checked) {
command.forceActiveFocus();
}
}
}
QtLayouts.RowLayout {
......
......@@ -45,6 +45,11 @@ QtLayouts.ColumnLayout {
QtControls.CheckBox {
id: showTitle
text: i18nc("@option:check", "Show title");
onClicked: {
if (checked) {
title.forceActiveFocus();
}
}
}
QtLayouts.RowLayout {
QtControls.Label {
......@@ -79,6 +84,11 @@ QtLayouts.ColumnLayout {
QtControls.CheckBox {
id: showNotification
text: i18nc("@option:check", "Show notification");
onClicked: {
if (checked) {
notificationText.forceActiveFocus();
}
}
}
QtLayouts.RowLayout {
QtControls.Label {
......
Supports Markdown
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