Warning, /frameworks/kirigami/examples/simpleexamples/FixedSidebar.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 QtQuick.Layouts 0009 import org.kde.kirigami as Kirigami 0010 import QtQuick.Controls as QQC2 0011 0012 Kirigami.ApplicationWindow { 0013 id: root 0014 0015 width: Kirigami.Units.gridUnit * 60 0016 height: Kirigami.Units.gridUnit * 40 0017 0018 pageStack.initialPage: mainPageComponent 0019 globalDrawer: Kirigami.OverlayDrawer { 0020 drawerOpen: true 0021 modal: false 0022 contentItem: Item { 0023 implicitWidth: Kirigami.Units.gridUnit * 10 0024 0025 QQC2.Label { 0026 text: "This is a sidebar" 0027 width: parent.width - Kirigami.Units.smallSpacing * 2 0028 wrapMode: Text.WordWrap 0029 anchors.horizontalCenter: parent.horizontalCenter 0030 } 0031 } 0032 } 0033 0034 //Main app content 0035 Component { 0036 id: mainPageComponent 0037 MultipleColumnsGallery {} 0038 } 0039 }