Changeset View
Changeset View
Standalone View
Standalone View
src/applet/package/contents/ui/CompactRepresentation.qml
Show All 29 Lines | 28 | readonly property bool inPanel: (plasmoid.location == PlasmaCore.Types.TopEdge | |||
---|---|---|---|---|---|
30 | || plasmoid.location == PlasmaCore.Types.BottomEdge | 30 | || plasmoid.location == PlasmaCore.Types.BottomEdge | ||
31 | || plasmoid.location == PlasmaCore.Types.LeftEdge) | 31 | || plasmoid.location == PlasmaCore.Types.LeftEdge) | ||
32 | 32 | | |||
33 | Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 | 33 | Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 | ||
34 | Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1 | 34 | Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1 | ||
35 | 35 | | |||
36 | onClicked: plasmoid.expanded = !plasmoid.expanded | 36 | onClicked: plasmoid.expanded = !plasmoid.expanded | ||
37 | 37 | | |||
38 | hoverEnabled: true | ||||
39 | | ||||
38 | PlasmaCore.IconItem { | 40 | PlasmaCore.IconItem { | ||
39 | id: bluetoothIcon | 41 | id: bluetoothIcon | ||
40 | anchors.fill: parent | 42 | anchors.fill: parent | ||
41 | source: plasmoid.icon | 43 | source: plasmoid.icon | ||
44 | active: parent.containsMouse | ||||
42 | 45 | | |||
43 | PlasmaComponents.BusyIndicator { | 46 | PlasmaComponents.BusyIndicator { | ||
44 | id: busyIndicator | 47 | id: busyIndicator | ||
45 | anchors.fill: parent | 48 | anchors.fill: parent | ||
46 | running: runningActions > 0 | 49 | running: runningActions > 0 | ||
47 | visible: running | 50 | visible: running | ||
48 | } | 51 | } | ||
49 | } | 52 | } | ||
50 | } | 53 | } |