setIconOverlay(isChecked());
connect(this, SIGNAL(toggled(bool)),
this, SLOT(setIconOverlay(bool)));
+ connect(KGlobalSettings::self(), SIGNAL(iconChanged(int)),
+ this, SLOT(refreshIcon()));
}
SelectionToggle::~SelectionToggle()
update();
}
+void SelectionToggle::refreshIcon()
+{
+ setIconOverlay(isChecked());
+}
+
void SelectionToggle::startFading()
{
Q_ASSERT(m_fadingTimeLine == 0);