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 2.15
0008 import org.kde.kirigami 2.20 as Kirigami
0009 
0010 Kirigami.ApplicationWindow {
0011     id: root
0012 
0013     globalDrawer: Kirigami.GlobalDrawer {
0014         title: "Hello App"
0015         titleIcon: "applications-graphics"
0016 
0017         actions: [
0018             Kirigami.Action {
0019                 text: "View"
0020                 icon.name: "view-list-icons"
0021                 Kirigami.Action {
0022                     text: "action 1"
0023                 }
0024                 Kirigami.Action {
0025                     text: "action 2"
0026                 }
0027                 Kirigami.Action {
0028                     text: "action 3"
0029                 }
0030             },
0031             Kirigami.Action {
0032                 text: "action 3"
0033             },
0034             Kirigami.Action {
0035                 text: "action 4"
0036             }
0037         ]
0038     }
0039     contextDrawer: Kirigami.ContextDrawer {
0040         id: contextDrawer
0041     }
0042 
0043     pageStack.initialPage: mainPageComponent
0044 
0045     Component {
0046         id: mainPageComponent
0047         Kirigami.ScrollablePage {
0048             title: "Hello"
0049             Rectangle {
0050                 anchors.fill: parent
0051             }
0052         }
0053     }
0054 }