Warning, /frameworks/kirigami/examples/settingscomponents/main.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * SPDX-FileCopyrightText: 2021 Felipe Kinoshita <kinofhek@gmail.com>
0003 *
0004 * SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 import QtQuick
0008 import QtQuick.Layouts
0009 import QtQuick.Controls as QQC2
0010 import org.kde.kirigami as Kirigami
0011
0012 Kirigami.ApplicationWindow {
0013 id: root
0014
0015 title: qsTr("Hello, World")
0016
0017 globalDrawer: Kirigami.GlobalDrawer {
0018 isMenu: !Kirigami.isMobile
0019 actions: [
0020 Kirigami.Action {
0021 text: qsTr("Settings")
0022 icon.name: "settings-configure"
0023 onTriggered: root.pageStack.pushDialogLayer(Qt.resolvedUrl("./SettingsPage.qml"), {
0024 width: root.width
0025 }, {
0026 title: qsTr("Settings"),
0027 width: root.width - (Kirigami.Units.gridUnit * 4),
0028 height: root.height - (Kirigami.Units.gridUnit * 4)
0029 })
0030 }
0031 ]
0032 }
0033
0034 pageStack.initialPage: Kirigami.Page {
0035 title: qsTr("Main Page")
0036 }
0037 }