mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Update selection toggle icon when the icon theme has been changed. Thanks to David Benjamin for the patch!
BUG: 161316 svn path=/trunk/KDE/kdebase/apps/; revision=805209
This commit is contained in:
parent
63be8bc9a1
commit
197abb4be8
|
@ -44,6 +44,8 @@ SelectionToggle::SelectionToggle(QWidget* parent) :
|
|||
setIconOverlay(isChecked());
|
||||
connect(this, SIGNAL(toggled(bool)),
|
||||
this, SLOT(setIconOverlay(bool)));
|
||||
connect(KGlobalSettings::self(), SIGNAL(iconChanged(int)),
|
||||
this, SLOT(refreshIcon()));
|
||||
}
|
||||
|
||||
SelectionToggle::~SelectionToggle()
|
||||
|
@ -177,6 +179,11 @@ void SelectionToggle::setIconOverlay(bool checked)
|
|||
update();
|
||||
}
|
||||
|
||||
void SelectionToggle::refreshIcon()
|
||||
{
|
||||
setIconOverlay(isChecked());
|
||||
}
|
||||
|
||||
void SelectionToggle::startFading()
|
||||
{
|
||||
Q_ASSERT(m_fadingTimeLine == 0);
|
||||
|
|
|
@ -70,6 +70,7 @@ private slots:
|
|||
void setFadingValue(int value);
|
||||
|
||||
void setIconOverlay(bool checked);
|
||||
void refreshIcon();
|
||||
|
||||
private:
|
||||
void startFading();
|
||||
|
|
Loading…
Reference in a new issue