Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/main.qml
Show All 17 Lines | 1 | /* | |||
---|---|---|---|---|---|
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | import QtQuick 2.1 | 21 | import QtQuick 2.1 | ||
22 | import QtQuick.Controls 1.3 | 22 | import QtQuick.Controls 1.3 | ||
23 | 23 | | |||
24 | import org.kde.kcm 1.0 | 24 | import org.kde.kcm 1.0 | ||
25 | import org.kde.plasma.core 2.0 as PlasmaCore /* for units.gridUnit */ | 25 | import org.kde.plasma.core 2.0 as PlasmaCore /* for units.gridUnit */ | ||
26 | 26 | import org.kde.kirigami 2.5 as Kirigami | |||
27 | import org.kde.plasma.private.volume 0.1 | 27 | import org.kde.plasma.private.volume 0.1 | ||
28 | 28 | | |||
29 | MouseArea { | 29 | Kirigami.Page { | ||
30 | title: kcm.name | ||||
30 | property int wheelDelta: 0 | 31 | property int wheelDelta: 0 | ||
31 | property QtObject sinkModel: SinkModel { } | 32 | property QtObject sinkModel: SinkModel { } | ||
32 | property QtObject sourceModel: SourceModel { } | 33 | property QtObject sourceModel: SourceModel { } | ||
34 | ConfigModule.quickHelp: i18n("This module allows configuring the Pulseaudio sound subsystem.") | ||||
33 | 35 | | |||
36 | contentItem: MouseArea { | ||||
34 | acceptedButtons: Qt.NoButton | 37 | acceptedButtons: Qt.NoButton | ||
35 | implicitWidth: units.gridUnit * 30 | 38 | implicitWidth: units.gridUnit * 30 | ||
36 | implicitHeight: units.gridUnit * 30 | 39 | implicitHeight: units.gridUnit * 30 | ||
ngraham: If we're moving this text around, let's also correct it: "allows to set up" is not correct… | |||||
37 | 40 | | |||
38 | ConfigModule.quickHelp: i18n("This module allows to set up the Pulseaudio sound subsystem.") | | |||
39 | | ||||
40 | onWheel: { | 41 | onWheel: { | ||
41 | if (tabView.childAt(wheel.x, wheel.y).objectName != "tabbar") { | 42 | if (tabView.childAt(wheel.x, wheel.y).objectName != "tabbar") { | ||
42 | wheel.accepted = false; | 43 | wheel.accepted = false; | ||
43 | return; | 44 | return; | ||
44 | } | 45 | } | ||
45 | var delta = wheel.angleDelta.y || wheel.angleDelta.x; | 46 | var delta = wheel.angleDelta.y || wheel.angleDelta.x; | ||
46 | wheelDelta += delta; | 47 | wheelDelta += delta; | ||
47 | // Magic number 120 for common "one click" | 48 | // Magic number 120 for common "one click" | ||
Show All 21 Lines | 68 | Tab { | |||
69 | Applications {} | 70 | Applications {} | ||
70 | } | 71 | } | ||
71 | Tab { | 72 | Tab { | ||
72 | title: i18nc("@title:tab", "Advanced") | 73 | title: i18nc("@title:tab", "Advanced") | ||
73 | Advanced {} | 74 | Advanced {} | ||
74 | } | 75 | } | ||
75 | } | 76 | } | ||
76 | } | 77 | } | ||
78 | } |
If we're moving this text around, let's also correct it: "allows to set up" is not correct grammar. Also, "set up" is not really standard terminology.
Should be "allows you to configure" or "allows configuring"