Socialify

Folder ..

Viewing FullRepresentation.qml
65 lines (52 loc) • 1.6 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
53
54
55
56
57
58
59
60
61
62
63
64
65
import QtQuick 2.0
import QtQuick.Layouts 1.3
import QtQuick.Controls 1.4

import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.components 2.0 as PlasmaComponents

ColumnLayout {
    RowLayout {
        Layout.fillWidth: true
        PlasmaExtras.Heading {
            text: i18n("Audio")
            level: 4

            Layout.fillWidth: true
        }

        PlasmaComponents.ToolButton {
            id: openSettingsButton

            iconSource: "configure"
            tooltip: i18n("Configure Audio Volume...")

            onClicked: {
                KCMShell.open(["pulseaudio"])
            }
        }
    }

    PlasmaExtras.ScrollArea {
        id: scrollView
        Layout.fillWidth: true
        Layout.fillHeight: true

        Flickable {
            ColumnLayout {
                spacing: 22
                width: scrollView.width

                Outputs {
                    Layout.alignment: Qt.AlignTop
                    Layout.fillWidth: true
                }

                Inputs {
                    Layout.alignment: Qt.AlignTop
                    Layout.fillWidth: true
                }

                Applications {
                    Layout.alignment: Qt.AlignTop
                    Layout.fillWidth: true
                }
            }
        }
    }


    Loader {
        Layout.alignment: Qt.AlignBottom
        Layout.fillWidth: true
        sourceComponent: mediaController.fullRepresentation
    }
}