Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ListItemBase.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 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 112 | RowLayout { | |||
130 | } | 131 | } | ||
131 | } | 132 | } | ||
132 | 133 | | |||
133 | RowLayout { | 134 | RowLayout { | ||
134 | SmallToolButton { | 135 | SmallToolButton { | ||
135 | readonly property bool isPlayback: type.substring(0, 4) == "sink" | 136 | readonly property bool isPlayback: type.substring(0, 4) == "sink" | ||
136 | icon: Icon.name(Volume, Muted, isPlayback ? "audio-volume" : "microphone-sensitivity") | 137 | icon: Icon.name(Volume, Muted, isPlayback ? "audio-volume" : "microphone-sensitivity") | ||
137 | onClicked: Muted = !Muted | 138 | onClicked: Muted = !Muted | ||
139 | checked: Muted | ||||
138 | tooltip: i18n("Mute %1", textLabel.text) | 140 | tooltip: i18n("Mute %1", textLabel.text) | ||
139 | 141 | | |||
140 | } | 142 | } | ||
141 | 143 | | |||
142 | PlasmaComponents.Slider { | 144 | PlasmaComponents.Slider { | ||
143 | id: slider | 145 | id: slider | ||
144 | 146 | | |||
145 | // Helper properties to allow async slider updates. | 147 | // Helper properties to allow async slider updates. | ||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |