Warning, /plasma/libplasma/examples/applets/config/contents/ui/configGeneral.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org>
0003     SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 import QtQuick
0009 import QtQuick.Controls as QQC2
0010 import org.kde.kirigami as Kirigami
0011 
0012 QQC2.Pane {
0013     id: root
0014 
0015     property alias cfg_BoolTest: testBoolConfigField.checked
0016     property alias cfg_Test: testConfigField.text
0017     property alias cfg_IntTest: intTestConfigField.value
0018 
0019     Kirigami.FormLayout {
0020         anchors.fill: parent
0021 
0022         QQC2.CheckBox {
0023             id: testBoolConfigField
0024             text: i18nc("@label example config", "Bool from config")
0025             Kirigami.FormData.label: i18nc("@label example config", "Bool Config value:")
0026         }
0027         QQC2.TextField {
0028             id: testConfigField
0029             placeholderText: i18nc("@label example config", "String test")
0030             Kirigami.FormData.label: i18nc("@label example config", "Text Config value:")
0031         }
0032         QQC2.SpinBox {
0033             id: intTestConfigField
0034             Kirigami.FormData.label: i18nc("@label example config", "Integer:")
0035             from: -1
0036             to: 100
0037         }
0038     }
0039 }