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:
范朋程 2020-05-26 15:28:11 +08:00
commit 3c6ffa850c

View File

@ -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");