Warning, /plasma/kdeplasma-addons/applets/timer/package/contents/ui/configAdvanced.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *  SPDX-FileCopyrightText: 2015 Bernhard Friedrich <friesoft@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 import QtQuick 2.5
0008 import QtQuick.Controls 2.5 as QQC2
0009 import QtQuick.Layouts 1.0
0010 
0011 import org.kde.kirigami 2.5 as Kirigami
0012 import org.kde.kcmutils as KCM
0013 
0014 KCM.SimpleKCM {
0015     property alias cfg_runCommand: runCommand.checked
0016     property alias cfg_command: command.text
0017 
0018     Kirigami.FormLayout {
0019         RowLayout {
0020             Layout.fillWidth: true
0021 
0022             Kirigami.FormData.label: i18nc("@title:label", "After timer completes:")
0023 
0024             QQC2.CheckBox {
0025                 id: runCommand
0026                 text: i18nc("@option:check", "Execute command:")
0027                 onClicked: {
0028                     if (checked) {
0029                         command.forceActiveFocus();
0030                     }
0031                 }
0032             }
0033 
0034             QQC2.TextField {
0035                 id: command
0036                 Layout.fillWidth: true
0037                 enabled: runCommand.checked
0038             }
0039         }
0040     }
0041 }