Warning, /plasma-mobile/raven/src/contents/ui/mailboxselector/MailBoxListSidebar.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu> 0002 // SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org> 0003 // SPDX-License-Identifier: LGPL-2.0-or-later 0004 0005 import QtQuick 2.15 0006 import QtQuick.Controls 2.15 as QQC2 0007 import QtQuick.Layouts 1.15 0008 0009 import Qt.labs.qmlmodels 1.0 0010 0011 import org.kde.kirigami 2.15 as Kirigami 0012 import org.kde.kitemmodels 1.0 0013 import org.kde.raven 1.0 0014 0015 Kirigami.GlobalDrawer { 0016 id: root 0017 title: i18n("Mail") 0018 modal: false 0019 0020 Kirigami.Theme.colorSet: Kirigami.Theme.Window 0021 Kirigami.Theme.inherit: false 0022 0023 topPadding: 0 0024 leftPadding: 0 0025 rightPadding: 0 0026 bottomPadding: 0 0027 0028 contentItem: ColumnLayout { 0029 spacing: 0 0030 0031 QQC2.ToolBar { 0032 Layout.fillWidth: true 0033 implicitHeight: applicationWindow().pageStack.globalToolBar.preferredHeight 0034 0035 RowLayout { 0036 anchors.fill: parent 0037 0038 Kirigami.Heading { 0039 level: 1 0040 text: i18n("Mail") 0041 Layout.fillWidth: true 0042 Layout.alignment: Qt.AlignVCenter 0043 Layout.leftMargin: Kirigami.Units.largeSpacing + Kirigami.Units.smallSpacing 0044 } 0045 0046 QQC2.ToolButton { 0047 display: QQC2.ToolButton.IconOnly 0048 text: i18n("Settings") 0049 icon.name: "settings-configure" 0050 onClicked: applicationWindow().pageStack.layers.push(applicationWindow().getPage("SettingsPage")) 0051 } 0052 } 0053 } 0054 0055 QQC2.ScrollView { 0056 id: folderListView 0057 implicitWidth: Kirigami.Units.gridUnit * 16 0058 Layout.fillWidth: true 0059 Layout.fillHeight: true 0060 QQC2.ScrollBar.horizontal.policy: QQC2.ScrollBar.AlwaysOff 0061 contentWidth: availableWidth 0062 clip: true 0063 0064 contentItem: MailBoxList {} 0065 } 0066 } 0067 }