fix(sound): refresh icon

Change-Id: I9a873b433f80cc76f2a84c12509fa8ff5b45abea
This commit is contained in:
haruyukilxz 2018-06-20 16:00:16 +08:00 committed by kirigayakazushin
parent c6e33dc3e1
commit 7023154bec
Notes: gerrit 2018-06-21 17:24:08 +08:00
Verified+1: <jenkins@deepin.com>
Code-Review+2: hualet <mr.asianwang@gmail.com>
Submitted-by: kirigayakazushin <lxz@ilxz.me>
Submitted-at: Thu, 21 Jun 2018 17:24:07 +0800
Reviewed-on: https://cr.deepin.io/35873
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -26,13 +26,15 @@
#include <QIcon>
#include <QMouseEvent>
#include <QApplication>
#include <DApplication>
#include <DDBusSender>
// menu actions
#define MUTE "mute"
#define SETTINS "settings"
DWIDGET_USE_NAMESPACE
SoundItem::SoundItem(QWidget *parent)
: QWidget(parent),
@ -53,6 +55,7 @@ SoundItem::SoundItem(QWidget *parent)
connect(m_applet, static_cast<void (SoundApplet::*)(DBusSink*) const>(&SoundApplet::defaultSinkChanged), this, &SoundItem::sinkChanged);
connect(m_applet, &SoundApplet::volumeChanged, this, &SoundItem::refershTips, Qt::QueuedConnection);
connect(static_cast<DApplication*>(qApp), &DApplication::iconThemeChanged, this, &SoundItem::refershIcon);
}
QWidget *SoundItem::tipsWidget()