/* * SPDX-FileCopyrightText: 2016 Marco Martin * * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick import QtQuick.Controls as QQC2 import org.kde.kirigami as Kirigami Kirigami.ApplicationWindow { id: root Kirigami.PagePool { id: mainPagePool } globalDrawer: Kirigami.GlobalDrawer { } contextDrawer: Kirigami.ContextDrawer { id: contextDrawer } pageStack.initialPage: wideScreen ? [firstPage, mainPagePool.loadPage("SimplePage.qml")] : [firstPage] Component { id: firstPage Kirigami.ScrollablePage { id: root title: i18n("Sidebar") property list pageActions: [ Kirigami.PagePoolAction { text: i18n("Page1") icon.name: "speedometer" pagePool: mainPagePool basePage: root page: "SimplePage.qml" }, Kirigami.PagePoolAction { text: i18n("Page2") icon.name: "window-duplicate" pagePool: mainPagePool basePage: root page: "MultipleColumnsGallery.qml" } ] ListView { model: pageActions keyNavigationEnabled: true activeFocusOnTab: true reuseItems: true delegate: QQC2.ItemDelegate { id: delegate action: modelData width: parent.width } } } } }