mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
Merge branch 'fanpengcheng/5.0_bug6382' into 'maintain/5.0'
feat:remove note See merge request dde-v20/dde-dock!496
This commit is contained in:
commit
3c6ffa850c
@ -179,27 +179,9 @@ void SinkInputWidget::onPlaySoundEffect()
|
||||
|
||||
void SinkInputWidget::refreshIcon()
|
||||
{
|
||||
// qDebug() << __PRETTY_FUNCTION__ << __LINE__ << __FILE__;
|
||||
if (!m_inputInter)
|
||||
return;
|
||||
|
||||
// const float volume = m_inputInter->volume();
|
||||
// const bool mute = m_inputInter->mute();
|
||||
|
||||
// QString volumeString;
|
||||
|
||||
// if (mute) {
|
||||
// volumeString = "muted";
|
||||
// } else if (int(volume) == 0) {
|
||||
// volumeString = "off";
|
||||
// } else if (volume >= double(2) / 3) {
|
||||
// volumeString = "high";
|
||||
// } else if (volume >= double(1) / 3) {
|
||||
// volumeString = "medium";
|
||||
// } else {
|
||||
// volumeString = "low";
|
||||
// }
|
||||
|
||||
QString iconLeft = QString(m_inputInter->mute() ? "audio-volume-muted-symbolic" : "audio-volume-low-symbolic");
|
||||
QString iconRight = QString("audio-volume-high-symbolic");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user