Warning, /plasma/plasma-pa/src/kcm/ui/MuteButton.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
0003     SPDX-FileCopyrightText: 2019 Sefa Eyeoglu <contact@scrumplex.net>
0004 
0005     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 */
0007 
0008 import QtQuick
0009 import QtQuick.Controls as QQC2
0010 import "icon.js" as Icon
0011 
0012 QQC2.ToolButton {
0013     property bool muted: true
0014     property var toolTipText
0015 
0016     icon.name: Icon.name(Volume, Muted, isPlayback ? "audio-volume" : "microphone-sensitivity")
0017     checkable: true
0018     checked: muted
0019     onMutedChanged: checked = muted
0020 
0021     QQC2.ToolTip {
0022         text: muted ? i18ndc("kcm_pulseaudio", "Unmute audio stream", "Unmute %1", toolTipText) : i18ndc("kcm_pulseaudio", "Mute audio stream", "Mute %1", toolTipText)
0023     }
0024 }