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:
parent
afc3cf2f34
commit
c9fd8fc1e5
|
@ -209,7 +209,7 @@ void IconItem::setActive(bool active)
|
||||||
|
|
||||||
m_active = active;
|
m_active = active;
|
||||||
if (isComponentComplete()) {
|
if (isComponentComplete()) {
|
||||||
m_loadPixmapTimer.start();
|
loadPixmap();
|
||||||
}
|
}
|
||||||
emit activeChanged();
|
emit activeChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user