Warning, /plasma/libplasma/examples/applets/testcomponents/contents/ui/ButtonsPage.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org>
0003
0004 SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006
0007 import QtQuick
0008
0009 import org.kde.plasma.components as PlasmaComponents
0010 import org.kde.kquickcontrolsaddons as KQuickControlsAddons
0011 import org.kde.kirigami as Kirigami
0012
0013 // ButtonsPage
0014
0015 PlasmaComponents.Page {
0016 id: plasmoidPage
0017 anchors {
0018 fill: parent
0019 margins: _s
0020 }
0021 Column {
0022 spacing: _s/2
0023 anchors.fill: parent
0024 Kirigami.Heading {
0025 level: 1
0026 width: parent.width
0027 text: "Buttons"
0028 }
0029 Row {
0030 height: _h
0031 spacing: _s
0032 PlasmaComponents.Button {
0033 text: "Button"
0034 iconSource: "call-start"
0035 }
0036 PlasmaComponents.ToolButton {
0037 text: "ToolButton"
0038 iconSource: "call-stop"
0039 }
0040 }
0041 Row {
0042 height: _h
0043 spacing: _s
0044 PlasmaComponents.RadioButton {
0045 id: radio
0046 text: "RadioButton"
0047 //iconSource: "call-stop"
0048 onCheckedChanged: if (checked) tfield.forceActiveFocus()
0049 }
0050 PlasmaComponents.TextField {
0051 id: tfield
0052 enabled: radio.checked
0053 text: "input here"
0054 clearButtonShown: true
0055 }
0056 }
0057 // PlasmaComponents.TextArea {
0058 // width: parent.width
0059 // height: _h*2
0060 // wrapMode: TextEdit.Wrap
0061 // }
0062 }
0063 }
0064