kdeconnect-kde/plasmoid/package/contents/ui/CompactRepresentation.qml
Albert Vaca Cintora f3fa818cbf
Revert changes to QML incompatible with Qt 6.6 and older
- Revert "plasmoid: Port to pragma ComponentBehavior: Bound"
  This reverts commit 9ee0b23727.

- Revert "plasmoid: Flatten plugin controllers, menu and other non-graphical components"
  This reverts commit d2ee2bfdd8.

- Revert "plasmoid: Basic code cleanup"
  This reverts commit 90946829bf.
2024-09-04 00:37:36 +02:00

32 lines
639 B
QML

/*
SPDX-FileCopyrightText: 2014-2015 Frederic St-Pierre <me@fredericstpierre.com>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
import QtQuick
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
DropArea {
onEntered: {
if (drag.hasUrls) {
root.expanded = true;
}
}
MouseArea {
id: kdeConnectMouseArea
anchors.fill: parent
onClicked: {
root.expanded = !root.expanded;
}
}
Kirigami.Icon {
id: kdeConnectIcon
anchors.fill: parent
source: plasmoid.icon
}
}