Warning, /libraries/kirigami-addons/examples/FormCardTutorial/contents/ui/main.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.15
0002 import QtQuick.Layouts 1.15
0003 
0004 import org.kde.kirigami 2.20 as Kirigami
0005 import org.kde.kirigamiaddons.formcard 1.0 as FormCard
0006 
0007 import org.kde.about 1.0
0008 
0009 Kirigami.ApplicationWindow {
0010     id: root
0011     width: 600
0012     height: 700
0013 
0014     Component {
0015         id: aboutkde
0016         FormCard.AboutKDE {}
0017     }
0018 
0019     Component {
0020         id: aboutpage
0021         MyAboutPage {}
0022     }
0023 
0024     Component {
0025         id: settingspage
0026         SettingsPage {}
0027     }
0028 
0029     pageStack.initialPage: Kirigami.ScrollablePage {
0030         ColumnLayout {
0031             FormCard.FormCard {
0032                 FormCard.FormButtonDelegate {
0033                     id: aboutKDEButton
0034                     icon.name: "kde"
0035                     text: i18n("About KDE Page")
0036                     onClicked: root.pageStack.layers.push(aboutkde)
0037                 }
0038 
0039                 FormCard.FormDelegateSeparator {
0040                     above: aboutKDEButton
0041                     below: aboutPageButton
0042                 }
0043 
0044                 FormCard.FormButtonDelegate {
0045                     id: aboutPageButton
0046                     icon.name: "applications-utilities"
0047                     text: i18n("About Addons Example")
0048                     onClicked: root.pageStack.layers.push(aboutpage)
0049                 }
0050 
0051                 FormCard.FormDelegateSeparator {
0052                     above: aboutPageButton
0053                     below: settingsButton
0054                 }
0055 
0056                 FormCard.FormButtonDelegate {
0057                     id: settingsButton
0058                     icon.name: "settings-configure"
0059                     text: i18n("Single Settings Page")
0060                     onClicked: root.pageStack.layers.push(settingspage)
0061                 }
0062             }
0063         }
0064     }
0065 }