Warning, /frameworks/kirigami/examples/simpleexamples/minimal.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.GlobalDrawer {
0014         actions: [
0015             Kirigami.Action {
0016                 text: "View"
0017                 icon.name: "view-list-icons"
0018                 Kirigami.Action {
0019                     text: "action 1"
0020                 }
0021                 Kirigami.Action {
0022                     text: "action 2"
0023                 }
0024                 Kirigami.Action {
0025                     text: "action 3"
0026                 }
0027             },
0028             Kirigami.Action {
0029                 text: "action 3"
0030             },
0031             Kirigami.Action {
0032                 text: "action 4"
0033             }
0034         ]
0035     }
0036     contextDrawer: Kirigami.ContextDrawer {
0037         id: contextDrawer
0038     }
0039 
0040     pageStack.initialPage: mainPageComponent
0041 
0042     Component {
0043         id: mainPageComponent
0044         Kirigami.ScrollablePage {
0045             title: "Hello"
0046             Rectangle {
0047                 anchors.fill: parent
0048             }
0049         }
0050     }
0051 }