Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ConnectionItem.qml
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 30 | PlasmaComponents.ListItem { | |||
---|---|---|---|---|---|
47 | 47 | | |||
48 | property real rxBytes: 0 | 48 | property real rxBytes: 0 | ||
49 | property real txBytes: 0 | 49 | property real txBytes: 0 | ||
50 | 50 | | |||
51 | checked: connectionItem.containsMouse | 51 | checked: connectionItem.containsMouse | ||
52 | enabled: true | 52 | enabled: true | ||
53 | height: expanded ? baseHeight + separator.height + expandableComponentLoader.height + (2 * Math.round(units.gridUnit / 3)) : baseHeight | 53 | height: expanded ? baseHeight + separator.height + expandableComponentLoader.height + (2 * Math.round(units.gridUnit / 3)) : baseHeight | ||
54 | 54 | | |||
55 | onContainsMouseChanged: { | ||||
ngraham: `ConnectionItem.qml` already has `onContainsMouseChanged` (at the bottom of the file); add the… | |||||
56 | if (containsMouse) { | ||||
57 | devicesView.currentIndex = index | ||||
58 | } else { | ||||
59 | devicesView.currentIndex = -1 | ||||
60 | } | ||||
61 | } | ||||
55 | ColumnLayout { | 62 | ColumnLayout { | ||
56 | anchors.fill: parent | 63 | anchors.fill: parent | ||
57 | 64 | | |||
58 | RowLayout { | 65 | RowLayout { | ||
59 | Layout.fillWidth: true | 66 | Layout.fillWidth: true | ||
60 | spacing: Math.round(units.gridUnit / 2) | 67 | spacing: Math.round(units.gridUnit / 2) | ||
61 | 68 | | |||
62 | PlasmaCore.SvgItem { | 69 | PlasmaCore.SvgItem { | ||
▲ Show 20 Lines • Show All 384 Lines • Show Last 20 Lines |
ConnectionItem.qml already has onContainsMouseChanged (at the bottom of the file); add the new stuff there.