Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/MuteButton.qml
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
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.0 | 21 | import QtQuick 2.0 | ||
22 | import QtQuick.Controls 1.0 | 22 | import QtQuick.Controls 1.0 | ||
23 | 23 | | |||
24 | ToolButton { | 24 | Button { | ||
25 | property bool muted: true | 25 | property bool muted: true | ||
26 | 26 | | |||
27 | iconName: 'audio-volume-muted' | 27 | iconName: 'audio-volume-muted' | ||
28 | tooltip: i18nd("kcm_pulseaudio", "Mute audio") | 28 | tooltip: i18nd("kcm_pulseaudio", "Mute audio") | ||
29 | checkable: true | 29 | checkable: true | ||
30 | checked: muted | 30 | checked: muted | ||
31 | onMutedChanged: checked = muted | 31 | onMutedChanged: checked = muted | ||
32 | } | 32 | } |