1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
import QtQuick
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.formcard as FormCard
Kirigami.ApplicationWindow {
id: root
width: 600
height: 700
Component {
id: aboutkde
FormCard.AboutKDE {}
}
Component {
id: aboutpage
FormCard.AboutPage {}
}
Component {
id: settingspage
SettingsPage {}
}
pageStack.initialPage: Kirigami.ScrollablePage {
ColumnLayout {
FormCard.FormCard {
FormCard.FormButtonDelegate {
id: aboutKDEButton
icon.name: "kde"
text: i18nc("@action:button", "About KDE Page")
onClicked: root.pageStack.layers.push(aboutkde)
}
FormCard.FormDelegateSeparator {
above: aboutKDEButton
below: aboutPageButton
}
FormCard.FormButtonDelegate {
id: aboutPageButton
icon.name: "applications-utilities"
text: i18nc("@action:button", "About Addons Example")
onClicked: root.pageStack.layers.push(aboutpage)
}
FormCard.FormDelegateSeparator {
above: aboutPageButton
below: settingsButton
}
FormCard.FormButtonDelegate {
id: settingsButton
icon.name: "settings-configure"
text: i18nc("@action:button", "Single Settings Page")
onClicked: root.pageStack.layers.push(settingspage)
}
}
}
}
}
|