]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/private/kitemlistviewanimation.cpp
Merge branch 'release/22.04'
[dolphin.git] / src / kitemviews / private / kitemlistviewanimation.cpp
index 67b9cc11382f0f8d83dcfa66717262da603f8d61..0c16c8b0a00cc2c81bb2edfff7fc1213a7ca70ca 100644 (file)
@@ -146,7 +146,15 @@ void KItemListViewAnimation::start(QGraphicsWidget* widget, AnimationType type,
         break;
     }
 
+    case IconResizeAnimation: {
+        propertyAnim = new QPropertyAnimation(widget, QByteArrayLiteral("iconSize"));
+        propertyAnim->setDuration(animationDuration);
+        propertyAnim->setEndValue(endValue);
+        break;
+    }
+
     default:
+        Q_UNREACHABLE();
         break;
     }
 
@@ -174,7 +182,7 @@ void KItemListViewAnimation::stop(QGraphicsWidget* widget, AnimationType type)
         m_animation[type].remove(widget);
         delete propertyAnim;
 
-        emit finished(widget, type);
+        Q_EMIT finished(widget, type);
     }
 }
 
@@ -213,7 +221,7 @@ void KItemListViewAnimation::slotFinished()
                 it.remove();
                 finishedAnim->deleteLater();
 
-                emit finished(widget, static_cast<AnimationType>(type));
+                Q_EMIT finished(widget, static_cast<AnimationType>(type));
                 return;
             }
         }