Warning, /network/kdenetwork-filesharing/samba/aclproperties/qml/main.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2021-2022 Harald Sitter <sitter@kde.org> 0003 0004 import QtQuick 2.15 0005 import QtQuick.Layouts 1.15 0006 import QtQuick.Controls 2.15 as QQC2 0007 import org.kde.kirigami 2.19 as Kirigami 0008 0009 import org.kde.filesharing.samba.acl 1.0 as Samba 0010 0011 QQC2.Frame { 0012 padding: 1 // without any padding there'd be no frame 0013 0014 Kirigami.ApplicationItem { 0015 id: root 0016 0017 anchors.fill: parent 0018 contextDrawer: Kirigami.ContextDrawer { 0019 id: contextDrawer 0020 } 0021 0022 pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Breadcrumb 0023 pageStack.globalToolBar.separatorVisible: bottomSeparator.visible 0024 pageStack.globalToolBar.colorSet: Kirigami.Theme.Window 0025 0026 Component { 0027 id: loadingPage 0028 LoadingPage {} 0029 } 0030 0031 Component { 0032 id: mainPage 0033 MainPage {} 0034 } 0035 0036 Component { 0037 id: noDataPage 0038 NoDataPage {} 0039 } 0040 0041 states: [ 0042 State { 0043 name: "loading" 0044 when: !plugin.ready 0045 PropertyChanges { target: root.pageStack; initialPage: loadingPage } 0046 }, 0047 State { 0048 name: "noData" 0049 when: Samba.Context.aceModel.empty 0050 PropertyChanges { target: root.pageStack; initialPage: noDataPage } 0051 }, 0052 State { 0053 name: "" // default state 0054 PropertyChanges { target: root.pageStack; initialPage: mainPage } 0055 } 0056 ] 0057 } 0058 }