44301dd51f
Currently the plasmoid is still written for KF5/Plasma 5, and in addition it also still uses PlasmaComponents2 stuff, which has been removed in KF6/Plasma 6. So, this is an attempt to port the plasmoid so that it works in Plasma 6. BUG: 476389
32 lines
639 B
QML
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
|
|
}
|
|
}
|