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:
Peter Penz 2008-05-07 20:55:51 +00:00
parent 63be8bc9a1
commit 197abb4be8
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -70,6 +70,7 @@ private slots:
void setFadingValue(int value);
void setIconOverlay(bool checked);
void refreshIcon();
private:
void startFading();