mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
optimize
svn path=/trunk/KDE/kdebase/apps/; revision=660582
This commit is contained in:
parent
7b286a5463
commit
be7f817875
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ void PixmapViewer::setPixmap(const QPixmap& pixmap)
|
||||||
m_pixmap = pixmap;
|
m_pixmap = pixmap;
|
||||||
update();
|
update();
|
||||||
|
|
||||||
if (m_transition != NoTransition) {
|
const bool animate = (m_transition != NoTransition) &&
|
||||||
|
(m_pixmap.size() != m_oldPixmap.size());
|
||||||
|
if (animate) {
|
||||||
m_animation.start();
|
m_animation.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue