Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/main.qml
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | Copyright 2014-2015 Harald Sitter <sitter@kde.org> | 2 | Copyright 2014-2015 Harald Sitter <sitter@kde.org> | ||
3 | Copyright 2019 Sefa Eyeoglu <contact@scrumplex.net> | ||||
3 | 4 | | |||
4 | This program is free software; you can redistribute it and/or | 5 | This program is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU General Public License as | 6 | modify it under the terms of the GNU General Public License as | ||
6 | published by the Free Software Foundation; either version 2 of | 7 | published by the Free Software Foundation; either version 2 of | ||
7 | the License or (at your option) version 3 or any later version | 8 | the License or (at your option) version 3 or any later version | ||
8 | accepted by the membership of KDE e.V. (or its successor approved | 9 | accepted by the membership of KDE e.V. (or its successor approved | ||
9 | by the membership of KDE e.V.), which shall act as a proxy | 10 | by the membership of KDE e.V.), which shall act as a proxy | ||
10 | defined in Section 14 of version 3 of the license. | 11 | defined in Section 14 of version 3 of the license. | ||
Show All 15 Lines | |||||
26 | import org.kde.plasma.core 2.0 as PlasmaCore /* for units.gridUnit */ | 27 | import org.kde.plasma.core 2.0 as PlasmaCore /* for units.gridUnit */ | ||
27 | import org.kde.kirigami 2.5 as Kirigami | 28 | import org.kde.kirigami 2.5 as Kirigami | ||
28 | import org.kde.plasma.private.volume 0.1 | 29 | import org.kde.plasma.private.volume 0.1 | ||
29 | 30 | | |||
30 | Kirigami.Page { | 31 | Kirigami.Page { | ||
31 | title: kcm.name | 32 | title: kcm.name | ||
32 | property QtObject sinkModel: SinkModel { } | 33 | property QtObject sinkModel: SinkModel { } | ||
33 | property QtObject sourceModel: SourceModel { } | 34 | property QtObject sourceModel: SourceModel { } | ||
35 | property int maxVolumeValue: PulseAudio.NormalVolume // the applet supports changing this value. We will just assume 65536 (100%) | ||||
34 | ConfigModule.quickHelp: i18nd("kcm_pulseaudio", "This module allows configuring the Pulseaudio sound subsystem.") | 36 | ConfigModule.quickHelp: i18nd("kcm_pulseaudio", "This module allows configuring the Pulseaudio sound subsystem.") | ||
35 | implicitHeight: Kirigami.Units.gridUnit * 28 | 37 | implicitHeight: Kirigami.Units.gridUnit * 28 | ||
36 | 38 | | |||
37 | // TODO: replace this TabBar-plus-Frame-in-a-ColumnLayout with whatever shakes | 39 | // TODO: replace this TabBar-plus-Frame-in-a-ColumnLayout with whatever shakes | ||
38 | // out of https://bugs.kde.org/show_bug.cgi?id=394296 | 40 | // out of https://bugs.kde.org/show_bug.cgi?id=394296 | ||
39 | ColumnLayout { | 41 | ColumnLayout { | ||
40 | anchors.fill: parent | 42 | anchors.fill: parent | ||
41 | spacing: 0 | 43 | spacing: 0 | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |