1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
/*
* SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.15
import QtQuick.Layouts 1.15
import org.kde.kirigami 2.20 as Kirigami
import QtQuick.Controls 2.15 as QQC2
Kirigami.ApplicationWindow {
id: root
width: Kirigami.Units.gridUnit * 60
height: Kirigami.Units.gridUnit * 40
pageStack.initialPage: mainPageComponent
globalDrawer: Kirigami.OverlayDrawer {
drawerOpen: true
modal: false
contentItem: Item {
implicitWidth: Kirigami.Units.gridUnit * 10
QQC2.Label {
text: "This is a sidebar"
width: parent.width - Kirigami.Units.smallSpacing * 2
wrapMode: Text.WordWrap
anchors.horizontalCenter: parent.horizontalCenter
}
}
}
//Main app content
Component {
id: mainPageComponent
MultipleColumnsGallery {}
}
}
|