Warning, /plasma/kdeplasma-addons/applets/grouping/package/contents/ui/items/PlasmoidItem.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org> 0003 * SPDX-FileCopyrightText: 2016 David Edmundson <davidedmundson@kde.org> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 import QtQuick 2.15 0009 import org.kde.plasma.core as PlasmaCore 0010 0011 AbstractItem { 0012 id: plasmoidContainer 0013 0014 property Item applet 0015 text: applet ? applet.plasmoid.title : "" 0016 0017 itemId: applet ? applet.plasmoid.id : "" 0018 status: applet ? applet.plasmoid.status : PlasmaCore.Types.UnknownStatus 0019 active: root.activeApplet !== applet 0020 0021 onClicked: { 0022 if (applet) { 0023 if (mouse.button === Qt.RightButton) { 0024 plasmoid.showPlasmoidMenu(applet, mouse.x, mouse.y); 0025 } 0026 } 0027 } 0028 }