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 2.15 0008 import org.kde.kirigami 2.20 as Kirigami 0009 0010 Kirigami.ApplicationWindow { 0011 id: root 0012 0013 Kirigami.PagePool { 0014 id: mainPagePool 0015 } 0016 0017 globalDrawer: Kirigami.GlobalDrawer { 0018 title: "Hello App" 0019 titleIcon: "applications-graphics" 0020 modal: !root.wideScreen 0021 width: Kirigami.Units.gridUnit * 10 0022 0023 actions: [ 0024 Kirigami.PagePoolAction { 0025 text: i18n("Page1") 0026 icon.name: "speedometer" 0027 pagePool: mainPagePool 0028 page: "SimplePage.qml" 0029 }, 0030 Kirigami.PagePoolAction { 0031 text: i18n("Page2") 0032 icon.name: "window-duplicate" 0033 pagePool: mainPagePool 0034 page: "MultipleColumnsGallery.qml" 0035 } 0036 ] 0037 } 0038 contextDrawer: Kirigami.ContextDrawer { 0039 id: contextDrawer 0040 } 0041 0042 pageStack.initialPage: mainPagePool.loadPage("SimplePage.qml") 0043 0044 }