Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/applet/DefaultCompactRepresentation.qml
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 59 | MouseArea { | |||
---|---|---|---|---|---|
60 | id: mouseArea | 60 | id: mouseArea | ||
61 | 61 | | |||
62 | property bool wasExpanded: false | 62 | property bool wasExpanded: false | ||
63 | 63 | | |||
64 | anchors.fill: parent | 64 | anchors.fill: parent | ||
65 | hoverEnabled: true | 65 | hoverEnabled: true | ||
66 | onPressed: wasExpanded = plasmoid.expanded | 66 | onPressed: wasExpanded = plasmoid.expanded | ||
67 | onClicked: plasmoid.expanded = !wasExpanded | 67 | onClicked: plasmoid.expanded = !wasExpanded | ||
68 | onPressAndHold: plasmoid.showContextMenu() | ||||
68 | } | 69 | } | ||
69 | } | 70 | } |