Warning, /frameworks/knewstuff/src/tools/knewstuff-dialog/qml/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2019 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.12 as QtLayouts 0009 import org.kde.kirigami 2.12 as Kirigami 0010 import org.kde.newstuff 1.62 as NewStuff 0011 import org.kde.newstuff.tools.dialog 1.0 as Myself 0012 0013 Kirigami.ApplicationWindow { 0014 id: root; 0015 title: "KNewStuff Dialog" 0016 0017 globalDrawer: Kirigami.GlobalDrawer { 0018 id: globalDrawer 0019 title: "KNewStuff Dialog" 0020 titleIcon: "get-hot-new-stuff" 0021 drawerOpen: true; 0022 modal: false; 0023 0024 actions: [] 0025 Instantiator { 0026 id: configsInstantiator 0027 model: Myself.KNSRCModel {} 0028 Kirigami.Action { 0029 text: model.name 0030 icon.name: "get-hot-new-stuff" 0031 onTriggered: { 0032 pageStack.clear(); 0033 pageStack.push(mainPageComponent, { configFile: model.filePath }); 0034 } 0035 } 0036 onObjectAdded: globalDrawer.actions.push(object); 0037 } 0038 } 0039 contextDrawer: Kirigami.ContextDrawer { 0040 id: contextDrawer 0041 } 0042 0043 pageStack.defaultColumnWidth: pageStack.width 0044 Component { 0045 id: mainPageComponent 0046 NewStuff.Page { } 0047 } 0048 Component { 0049 id: startPageComponent 0050 Kirigami.AboutPage { 0051 aboutData: { 0052 "displayName" : "KNewStuff Dialog", 0053 "productName" : "org.kde.knewstuff.tools.dialog", 0054 "programLogo" : "get-hot-new-stuff", 0055 "componentName" : "knewstuff-dialog", 0056 "shortDescription" : "Get All Your Hot New Stuff", 0057 "homepage" : "https://kde.org/", 0058 "bugAddress" : "https://bugs.kde.org/", 0059 "version" : "v1.0", 0060 "otherText": "", 0061 "authors" : [ 0062 { 0063 "name" : "Dan Leinir Turthra Jensen\n", 0064 "task" : "Lead Developer", 0065 "emailAddress" : "admin@leinir.dk", 0066 "webAddress" : "https://leinir.dk/", 0067 "ocsUsername" : "leinir" 0068 } 0069 ], 0070 "credits" : [], 0071 "translators" : [], 0072 "copyrightStatement" : "© 2020 The KDE Community", 0073 "desktopFileName" : "org.kde.knewstuff.tools.dialog" 0074 } 0075 } 0076 } 0077 Component.onCompleted: { 0078 pageStack.push(startPageComponent); 0079 } 0080 }