mixer: add clearer pulseaudio control naming
[apps/mixer.git] / app / Mixer.qml
index 7a099ce..96875e0 100644 (file)
@@ -53,14 +53,18 @@ ApplicationWindow {
                anchors.top: title.bottom
                anchors.margins: 80
                anchors.fill: parent
-               model: PaControlModel {}
+               model: PaControlModel { objectName: "pacm" }
                delegate: ColumnLayout {
                        width: parent.width
                        spacing: 40
+                       Connections {
+                               target: listView.model
+                               onDataChanged: slider.value = volume
+                       }
                        Loader {
                                property int modelType: type
                                property int modelCIndex: cindex
-                               property string modelDesc: desc
+                               property string modelDesc: name
                                sourceComponent: (channel == 0) ? ctldesc : empty
                        }
                        RowLayout {
@@ -75,6 +79,7 @@ ApplicationWindow {
                                        text: "0 %"
                                }
                                Slider {
+                                       id: slider
                                        Layout.fillWidth: true
                                        from: 0
                                        to: 65536