When changing "active" load pixmap right away

The active property is usualy set in response to a hover event.
Loading the new pixmap right away, starting the fade animation immediately, provides
a more responsive user experience.

REVIEW: 122857
This commit is contained in:
Kai Uwe Broulik 2015-03-08 19:57:25 +01:00
parent afc3cf2f34
commit c9fd8fc1e5

View File

@ -209,7 +209,7 @@ void IconItem::setActive(bool active)
m_active = active;
if (isComponentComplete()) {
m_loadPixmapTimer.start();
loadPixmap();
}
emit activeChanged();
}