Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/DeviceListItem.qml
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Line(s) | 39 | RowLayout { | |||
|---|---|---|---|---|---|
| 101 | } | 101 | } | ||
| 102 | } | 102 | } | ||
| 103 | 103 | | |||
| 104 | RowLayout { | 104 | RowLayout { | ||
| 105 | spacing: Kirigami.Units.smallSpacing | 105 | spacing: Kirigami.Units.smallSpacing | ||
| 106 | 106 | | |||
| 107 | MuteButton { | 107 | MuteButton { | ||
| 108 | id: muteButton | 108 | id: muteButton | ||
| 109 | Layout.topMargin: -(height - icon.height) / 2 | 109 | Layout.alignment: Qt.AlignTop | ||
| 110 | Layout.topMargin: -Math.round((height - volumeSlider.height) / 2) | ||||
| 110 | muted: Muted | 111 | muted: Muted | ||
| 111 | onCheckedChanged: Muted = checked | 112 | onCheckedChanged: Muted = checked | ||
| 112 | toolTipText: !currentPort ? Description : currentPort.description | 113 | toolTipText: !currentPort ? Description : currentPort.description | ||
| 113 | } | 114 | } | ||
| 114 | 115 | | |||
| 115 | VolumeSlider {} | 116 | VolumeSlider { | ||
| 117 | id: volumeSlider | ||||
| 118 | Layout.alignment: Qt.AlignTop | ||||
| 119 | } | ||||
| 116 | } | 120 | } | ||
| 117 | } | 121 | } | ||