Warning, /plasma/libplasma/examples/applets/testcomponents/contents/ui/DialogContent.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 import QtQuick.Window
0009 
0010 import org.kde.plasma.components as PlasmaComponents
0011 import org.kde.kquickcontrolsaddons as KQuickControlsAddons
0012 import org.kde.kirigami as Kirigami
0013 
0014 // DialogContent
0015 
0016 Item {
0017     id: dialogsPage
0018     width: 300
0019     height: 200
0020     signal closeMe()
0021     Rectangle {
0022         color: "green"
0023         //anchors.margins: 24
0024         opacity: 0
0025         anchors.fill: parent
0026     }
0027     Column {
0028         anchors.fill: parent
0029         spacing: 12
0030         Kirigami.Heading {
0031             id: tx
0032             level: 1
0033             text: "Test Dialog"
0034         }
0035         PlasmaComponents.TextArea {
0036             anchors { left: parent.left; right: parent.right; top: localeItem.bottom; }
0037             width: parent.width
0038             height: 80
0039             wrapMode: TextEdit.Wrap
0040         }
0041         PlasmaComponents.Button {
0042             id: thanks
0043             anchors { horizontalCenter: parent.horizontalCenter; bottom: parent.bottom; bottomMargin: 24; }
0044             iconSource: "dialog-ok"
0045             text: "Thanks."
0046             //onClicked: dialogsPage.parent.visible = false;
0047             onClicked: closeMe()
0048         }
0049     }
0050 }
0051