Warning, /frameworks/knewstuff/src/uploaddialog.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2021 Dan Leinir Turthra Jensen <admin@leinir.dk>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 import QtQuick 2.7
0008 import QtQuick.Layouts 1.11 as QtLayouts
0009 import QtQuick.Window 2.15
0010 import org.kde.kirigami 2.14 as Kirigami
0011 import org.kde.newstuff 1.85 as NewStuff
0012 
0013 Kirigami.ApplicationItem {
0014     signal closed()
0015     anchors.fill: parent
0016     implicitWidth: Math.min(Kirigami.Units.gridUnit * 44, Screen.width)
0017     implicitHeight: Math.min(Kirigami.Units.gridUnit * 30, Screen.height)
0018     pageStack.defaultColumnWidth: pageStack.width
0019     pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Auto
0020     pageStack.globalToolBar.canContainHandles: true
0021     pageStack.initialPage: NewStuff.UploadPage {
0022         engine: NewStuff.Engine {
0023             configFile: knsrcfile
0024         }
0025         onVisibleChanged: {
0026             if (!visible) {
0027                 applicationWindow.closed();
0028             }
0029         }
0030     }
0031     contextDrawer: Kirigami.ContextDrawer {
0032             id: contextDrawer
0033     }
0034 }