Warning, /libraries/kirigami-addons/examples/FormCardTutorial/contents/ui/SettingsPage.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15
0002 import org.kde.kirigami 2.20 as Kirigami
0003 import org.kde.kirigamiaddons.formcard 1.0 as FormCard
0004
0005 FormCard.FormCardPage {
0006
0007 FormCard.FormHeader {
0008 title: i18n("General")
0009 }
0010
0011 FormCard.FormCard {
0012 FormCard.FormTextDelegate {
0013 text: i18n("Current Color Scheme")
0014 description: "Breeze"
0015 }
0016 FormCard.FormComboBoxDelegate {
0017 id: combobox
0018 text: i18n("Default Profile")
0019 description: i18n("The profile to be loaded by default.")
0020 displayMode: FormCard.FormComboBoxDelegate.ComboBox
0021 currentIndex: 0
0022 editable: false
0023 model: ["Work", "Personal"]
0024 }
0025 FormCard.FormDelegateSeparator {
0026 above: combobox
0027 below: checkbox
0028 }
0029 FormCard.FormCheckDelegate {
0030 id: checkbox
0031 text: i18n("Show Tray Icon")
0032 onToggled: {
0033 if (checkState) {
0034 console.info("A tray icon appears on your system!")
0035 } else {
0036 console.info("The tray icon disappears!")
0037 }
0038 }
0039 }
0040 }
0041
0042 FormCard.FormHeader {
0043 title: i18n("Autosave")
0044 }
0045
0046 FormCard.FormCard {
0047 FormCard.FormSwitchDelegate {
0048 id: autosave
0049 text: i18n("Enabled")
0050 }
0051 FormCard.FormDelegateSeparator {
0052 above: autosave
0053 below: firstradio
0054 visible: autosave.checked
0055 }
0056 FormCard.FormRadioDelegate {
0057 id: firstradio
0058 text: i18n("After every change")
0059 visible: autosave.checked
0060 }
0061 FormCard.FormRadioDelegate {
0062 text: i18n("Every 10 minutes")
0063 visible: autosave.checked
0064 }
0065 FormCard.FormRadioDelegate {
0066 text: i18n("Every 30 minutes")
0067 visible: autosave.checked
0068 }
0069 }
0070
0071 FormCard.FormHeader {
0072 title: i18n("Accounts")
0073 }
0074
0075 FormCard.FormCard {
0076 FormCard.FormSectionText {
0077 text: i18n("Online Account Settings")
0078 }
0079 FormCard.FormTextDelegate {
0080 id: lastaccount
0081 leading: Kirigami.Icon {source: "user"}
0082 text: "John Doe"
0083 description: i18n("The Maintainer ™️")
0084 }
0085 FormCard.FormDelegateSeparator {
0086 above: lastaccount
0087 below: addaccount
0088 }
0089 FormCard.FormButtonDelegate {
0090 id: addaccount
0091 icon.name: "list-add"
0092 text: i18n("Add a new account")
0093 onClicked: console.info("Clicked!")
0094 }
0095 }
0096 }