diff options
| author | Marco Martin <[email protected]> | 2025-10-23 11:24:56 +0200 |
|---|---|---|
| committer | Marco Martin <[email protected]> | 2025-10-23 11:24:56 +0200 |
| commit | 89eae81d7608cc7328d8619ff5f9289d618ef19f (patch) | |
| tree | 50ed8d55cd8cdae4b3fe694d89aecc9c49b5f259 /src | |
| parent | 5ba28fbee04c0f2fa5b21cc2aa52eabc16e32f20 (diff) | |
Remove ResizeAnimation/IconResizeAnimation
ResizeAnimation and IconResizeAnimation are not
used anymore anywhere so remove them from KItemListViewAnimation
Diffstat (limited to 'src')
| -rw-r--r-- | src/kitemviews/private/kitemlistviewanimation.cpp | 21 | ||||
| -rw-r--r-- | src/kitemviews/private/kitemlistviewanimation.h | 7 |
2 files changed, 6 insertions, 22 deletions
diff --git a/src/kitemviews/private/kitemlistviewanimation.cpp b/src/kitemviews/private/kitemlistviewanimation.cpp index 763f770ff..e07961e31 100644 --- a/src/kitemviews/private/kitemlistviewanimation.cpp +++ b/src/kitemviews/private/kitemlistviewanimation.cpp @@ -133,25 +133,6 @@ void KItemListViewAnimation::start(QGraphicsWidget *widget, AnimationType type, break; } - case ResizeAnimation: { - const QSizeF newSize = endValue.toSizeF(); - if (newSize == widget->size()) { - return; - } - - propertyAnim = new QPropertyAnimation(widget, "size"); - propertyAnim->setDuration(animationDuration); - propertyAnim->setEndValue(newSize); - break; - } - - case IconResizeAnimation: { - propertyAnim = new QPropertyAnimation(widget, QByteArrayLiteral("iconSize")); - propertyAnim->setDuration(animationDuration); - propertyAnim->setEndValue(endValue); - break; - } - default: Q_UNREACHABLE(); break; @@ -179,8 +160,6 @@ void KItemListViewAnimation::stop(QGraphicsWidget *widget, AnimationType type) case DeleteAnimation: widget->setOpacity(0.0); break; - case ResizeAnimation: - break; default: break; } diff --git a/src/kitemviews/private/kitemlistviewanimation.h b/src/kitemviews/private/kitemlistviewanimation.h index c052d5dff..821566161 100644 --- a/src/kitemviews/private/kitemlistviewanimation.h +++ b/src/kitemviews/private/kitemlistviewanimation.h @@ -28,7 +28,12 @@ class DOLPHIN_EXPORT KItemListViewAnimation : public QObject Q_OBJECT public: - enum AnimationType { MovingAnimation, CreateAnimation, DeleteAnimation, ResizeAnimation, IconResizeAnimation, AnimationTypeCount }; + enum AnimationType { + MovingAnimation, + CreateAnimation, + DeleteAnimation, + AnimationTypeCount + }; explicit KItemListViewAnimation(QObject *parent = nullptr); ~KItemListViewAnimation() override; |
