don't draw multiple times if we aren't going to actually fade anything in
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=812647
This commit is contained in:
parent
c420730dd5
commit
f0da40111e
@ -502,6 +502,10 @@ void Icon::setSvg(const QString &svgFilePath, const QString &elementId)
|
||||
|
||||
void Icon::hoverEffect(bool show)
|
||||
{
|
||||
if (d->m_hoverAnimId == -1 && !d->drawBg) {
|
||||
return;
|
||||
}
|
||||
|
||||
d->m_fadeIn = show;
|
||||
const int FadeInDuration = 150;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user