mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
optimize
svn path=/trunk/KDE/kdebase/apps/; revision=660582
This commit is contained in:
parent
7b286a5463
commit
be7f817875
|
@ -50,7 +50,9 @@ void PixmapViewer::setPixmap(const QPixmap& pixmap)
|
|||
m_pixmap = pixmap;
|
||||
update();
|
||||
|
||||
if (m_transition != NoTransition) {
|
||||
const bool animate = (m_transition != NoTransition) &&
|
||||
(m_pixmap.size() != m_oldPixmap.size());
|
||||
if (animate) {
|
||||
m_animation.start();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue