Warning, /frameworks/kirigami/examples/simpleexamples/customdrawer.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     globalDrawer: Kirigami.OverlayDrawer {
0014         contentItem: Rectangle {
0015             implicitWidth: Kirigami.Units.gridUnit * 10
0016             color: "red"
0017             anchors.fill: parent
0018         }
0019     }
0020     contextDrawer: Kirigami.ContextDrawer {
0021         id: contextDrawer
0022     }
0023 
0024     pageStack.initialPage: mainPageComponent
0025 
0026     Component {
0027         id: mainPageComponent
0028         Kirigami.ScrollablePage {
0029             title: "Hello"
0030             Rectangle {
0031                 anchors.fill: parent
0032             }
0033         }
0034     }
0035 }