Warning, /plasma/plasma-sdk/plasmoidviewer/qmlpackages/shell/contents/views/Desktop.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org> 0003 * SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 import QtQuick 0009 0010 import org.kde.kirigami 2.20 as Kirigami 0011 0012 Rectangle { 0013 id: root 0014 0015 color: "black" 0016 width: 640 0017 height: 480 0018 0019 property Item containment 0020 0021 SdkButtons { 0022 z: 1 0023 anchors { 0024 horizontalCenter: parent.horizontalCenter 0025 bottom: parent.bottom 0026 } 0027 0028 containment: root.containment 0029 0030 onFormFactor: formFactorType => { 0031 desktop.changeFormFactor(formFactorType); 0032 } 0033 onLocation: locationType => { 0034 desktop.changeLocation(locationType); 0035 } 0036 onRequestScreenshot: { 0037 desktop.takeScreenShot(); 0038 } 0039 } 0040 0041 onContainmentChanged: { 0042 print("New Containment:", containment) 0043 //containment.parent = root 0044 containment.visible = true 0045 containment.anchors.fill = root 0046 } 0047 0048 Component.onCompleted: { 0049 desktop.stayBehind = true; 0050 desktop.fillScreen = true; 0051 print("View QML loaded"); 0052 } 0053 }