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);
const bool animate = KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects;
- const int duration = animate ? 1500 : 1;
+ const int duration = animate ? 600 : 1;
m_fadingTimeLine = new QTimeLine(duration, this);
connect(m_fadingTimeLine, SIGNAL(frameChanged(int)),