Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Applications.qml
Show All 24 Lines | |||||
25 | 25 | | |||
26 | import org.kde.plasma.private.volume 0.1 | 26 | import org.kde.plasma.private.volume 0.1 | ||
27 | 27 | | |||
28 | ScrollView { | 28 | ScrollView { | ||
29 | id: scrollView | 29 | id: scrollView | ||
30 | anchors.fill: parent | 30 | anchors.fill: parent | ||
31 | 31 | | |||
32 | ColumnLayout { | 32 | ColumnLayout { | ||
33 | width: scrollView.viewport.width | 33 | Component.onCompleted: { | ||
34 | // Normal binding causes binding loops | ||||
35 | width = Qt.binding(function() { | ||||
36 | return scrollView.viewport.width; | ||||
37 | }); | ||||
38 | } | ||||
34 | 39 | | |||
35 | property bool appsPlayingAudio: eventStreamView.visible || sinkInputView.visible | 40 | property bool appsPlayingAudio: eventStreamView.visible || sinkInputView.visible | ||
36 | 41 | | |||
37 | Header { | 42 | Header { | ||
38 | enabled: parent.appsPlayingAudio | 43 | enabled: parent.appsPlayingAudio | ||
39 | text: i18n("Playback") | 44 | text: i18n("Playback") | ||
40 | disabledText: i18nc("@label", "No Applications Playing Audio") | 45 | disabledText: i18nc("@label", "No Applications Playing Audio") | ||
41 | } | 46 | } | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |