Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Devices.qml
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 33 | ColumnLayout { | |||
---|---|---|---|---|---|
48 | } | 48 | } | ||
49 | 49 | | |||
50 | ListView { | 50 | ListView { | ||
51 | id: sinks | 51 | id: sinks | ||
52 | Layout.fillWidth: true | 52 | Layout.fillWidth: true | ||
53 | Layout.preferredHeight: contentHeight | 53 | Layout.preferredHeight: contentHeight | ||
54 | Layout.margins: units.gridUnit / 2 | 54 | Layout.margins: units.gridUnit / 2 | ||
55 | interactive: false | 55 | interactive: false | ||
56 | spacing: units.smallSpacing * 2 | 56 | spacing: units.gridUnit | ||
57 | model: sinkModel | 57 | model: sinkModel | ||
58 | delegate: DeviceListItem { | 58 | delegate: DeviceListItem { | ||
59 | isPlayback: true | 59 | isPlayback: true | ||
60 | } | 60 | } | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | Header { | 63 | Header { | ||
64 | Layout.fillWidth: true | 64 | Layout.fillWidth: true | ||
65 | enabled: sources.count > 0 | 65 | enabled: sources.count > 0 | ||
66 | text: i18nd("kcm_pulseaudio", "Recording Devices") | 66 | text: i18nd("kcm_pulseaudio", "Recording Devices") | ||
67 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Recording Devices Available") | 67 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Recording Devices Available") | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | ListView { | 70 | ListView { | ||
71 | id: sources | 71 | id: sources | ||
72 | Layout.fillWidth: true | 72 | Layout.fillWidth: true | ||
73 | Layout.preferredHeight: contentHeight | 73 | Layout.preferredHeight: contentHeight | ||
74 | Layout.margins: units.gridUnit / 2 | 74 | Layout.margins: units.gridUnit / 2 | ||
75 | interactive: false | 75 | interactive: false | ||
76 | spacing: units.gridUnit | ||||
76 | model: sourceModel | 77 | model: sourceModel | ||
77 | delegate: DeviceListItem { | 78 | delegate: DeviceListItem { | ||
78 | isPlayback: false | 79 | isPlayback: false | ||
79 | } | 80 | } | ||
80 | } | 81 | } | ||
81 | } | 82 | } | ||
82 | } | 83 | } |