Warning, /frameworks/kirigami/examples/simpleexamples/pagePoolDrawer.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org>
0003 *
0004 * SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 import QtQuick
0008 import org.kde.kirigami as Kirigami
0009
0010 Kirigami.ApplicationWindow {
0011 id: root
0012
0013 Kirigami.PagePool {
0014 id: mainPagePool
0015 }
0016
0017 globalDrawer: Kirigami.GlobalDrawer {
0018 modal: !root.wideScreen
0019 width: Kirigami.Units.gridUnit * 10
0020
0021 actions: [
0022 Kirigami.PagePoolAction {
0023 text: i18n("Page1")
0024 icon.name: "speedometer"
0025 pagePool: mainPagePool
0026 page: "SimplePage.qml"
0027 },
0028 Kirigami.PagePoolAction {
0029 text: i18n("Page2")
0030 icon.name: "window-duplicate"
0031 pagePool: mainPagePool
0032 page: "MultipleColumnsGallery.qml"
0033 }
0034 ]
0035 }
0036 contextDrawer: Kirigami.ContextDrawer {
0037 id: contextDrawer
0038 }
0039
0040 pageStack.initialPage: mainPagePool.loadPage("SimplePage.qml")
0041
0042 }