Socialify

Folder ..

Viewing Applications.qml
52 lines (43 loc) • 1.2 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import QtQuick 2.5
import QtQuick.Layouts 1.1

import org.kde.plasma.components 2.0 as PlasmaComponents

import org.kde.plasma.private.volume 0.1

ColumnLayout {

    Repeater {
        delegate: sinkInputView
        model: PulseObjectFilterModel {
            filters: [{
                    role: "VirtualStream",
                    value: false
                }]
            sourceModel: SinkInputModel {
            }
        }
    }

    Component {
        id: sinkInputView

        ColumnLayout {
            Layout.fillWidth: true
            RowLayout {
                Layout.fillWidth: true

                VolumeController {
                    id: globalController
                    Layout.fillWidth: true
                    Layout.alignment: Qt.AlignVCenter
                    pulseObject: PulseObject
                    iconName: IconName
                    shadeIconWhileMuted: true
                }
            }

            PlasmaComponents.Label {
                Layout.leftMargin: 6
                text: Client.name
                elide: Text.ElideRight
            }

            DeviceComboBox {
                Layout.fillWidth: true
                model: sinkModel
            }
        }
    }
}