Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/StreamListItem.qml
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 69 | DeviceComboBox { | |||
|---|---|---|---|---|---|
| 72 | Layout.rightMargin: units.smallSpacing | 72 | Layout.rightMargin: units.smallSpacing | ||
| 73 | Layout.preferredWidth: delegate.width / 3 | 73 | Layout.preferredWidth: delegate.width / 3 | ||
| 74 | visible: !isEventStream && count > 1 | 74 | visible: !isEventStream && count > 1 | ||
| 75 | } | 75 | } | ||
| 76 | } | 76 | } | ||
| 77 | 77 | | |||
| 78 | RowLayout { | 78 | RowLayout { | ||
| 79 | MuteButton { | 79 | MuteButton { | ||
| 80 | Layout.alignment: Qt.AlignTop | ||||
| 81 | Layout.topMargin: -Math.round((height - volumeSlider.height) / 2) | ||||
| 80 | muted: Muted | 82 | muted: Muted | ||
| 81 | onCheckedChanged: Muted = checked | 83 | onCheckedChanged: Muted = checked | ||
| 82 | toolTipText: inputText.text | 84 | toolTipText: inputText.text | ||
| 83 | } | 85 | } | ||
| 84 | 86 | | |||
| 85 | VolumeSlider {} | 87 | VolumeSlider { | ||
| 88 | id: volumeSlider | ||||
| 89 | Layout.alignment: Qt.AlignTop | ||||
| 90 | } | ||||
| 86 | } | 91 | } | ||
| 87 | } | 92 | } | ||
| 88 | } | 93 | } | ||
| 89 | 94 | | |||
| 90 | ListItemSeperator { | 95 | ListItemSeperator { | ||
| 91 | view: delegate.ListView.view | 96 | view: delegate.ListView.view | ||
| 92 | 97 | | |||
| 93 | Component.onCompleted: { | 98 | Component.onCompleted: { | ||
| 94 | if (isEventStream) { | 99 | if (isEventStream) { | ||
| 95 | visible = Qt.binding(function() { | 100 | visible = Qt.binding(function() { | ||
| 96 | return sinkInputView.count > 0; | 101 | return sinkInputView.count > 0; | ||
| 97 | }); | 102 | }); | ||
| 98 | } | 103 | } | ||
| 99 | } | 104 | } | ||
| 100 | } | 105 | } | ||
| 101 | } | 106 | } | ||