Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Devices.qml
Show All 30 Lines | 29 | Component.onCompleted: { | |||
---|---|---|---|---|---|
31 | width = Qt.binding(function() { | 31 | width = Qt.binding(function() { | ||
32 | return scrollView.viewport.width; | 32 | return scrollView.viewport.width; | ||
33 | }); | 33 | }); | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | Header { | 36 | Header { | ||
37 | Layout.fillWidth: true | 37 | Layout.fillWidth: true | ||
38 | enabled: sinks.count > 0 | 38 | enabled: sinks.count > 0 | ||
39 | text: i18n("Outputs") | 39 | text: i18nd("kcm_pulseaudio", "Outputs") | ||
40 | disabledText: i18nc("@label", "No Output Devices Available") | 40 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Output Devices Available") | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | ListView { | 43 | ListView { | ||
44 | id: sinks | 44 | id: sinks | ||
45 | Layout.fillWidth: true | 45 | Layout.fillWidth: true | ||
46 | Layout.preferredHeight: contentHeight | 46 | Layout.preferredHeight: contentHeight | ||
47 | Layout.margins: units.gridUnit / 2 | 47 | Layout.margins: units.gridUnit / 2 | ||
48 | interactive: false | 48 | interactive: false | ||
49 | spacing: units.smallSpacing * 2 | 49 | spacing: units.smallSpacing * 2 | ||
50 | model: sinkModel | 50 | model: sinkModel | ||
51 | delegate: DeviceListItem {} | 51 | delegate: DeviceListItem {} | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | Header { | 54 | Header { | ||
55 | Layout.fillWidth: true | 55 | Layout.fillWidth: true | ||
56 | enabled: sources.count > 0 | 56 | enabled: sources.count > 0 | ||
57 | text: i18n("Inputs") | 57 | text: i18nd("kcm_pulseaudio", "Inputs") | ||
58 | disabledText: i18nc("@label", "No Input Devices Available") | 58 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Input Devices Available") | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | ListView { | 61 | ListView { | ||
62 | id: sources | 62 | id: sources | ||
63 | Layout.fillWidth: true | 63 | Layout.fillWidth: true | ||
64 | Layout.preferredHeight: contentHeight | 64 | Layout.preferredHeight: contentHeight | ||
65 | Layout.margins: units.gridUnit / 2 | 65 | Layout.margins: units.gridUnit / 2 | ||
66 | interactive: false | 66 | interactive: false | ||
67 | model: sourceModel | 67 | model: sourceModel | ||
68 | delegate: DeviceListItem {} | 68 | delegate: DeviceListItem {} | ||
69 | } | 69 | } | ||
70 | } | 70 | } | ||
71 | } | 71 | } |