syncthingtray/plasmoid/package6/contents/ui/CompactRepresentation.qml

19 lines
433 B
QML

import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami 2.20 as Kirigami
MouseArea {
Layout.fillWidth: false
hoverEnabled: true
onClicked: plasmoid.expanded = !plasmoid.expanded
Kirigami.Icon {
id: icon
anchors.fill: parent
source: plasmoid.statusIcon
active: parent.containsMouse
}
}