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/kitemviews/private/kitemlistviewanimation.cpp | |
| parent | 5ba28fbee04c0f2fa5b21cc2aa52eabc16e32f20 (diff) | |
Remove ResizeAnimation/IconResizeAnimation
ResizeAnimation and IconResizeAnimation are not
used anymore anywhere so remove them from KItemListViewAnimation
Diffstat (limited to 'src/kitemviews/private/kitemlistviewanimation.cpp')
| -rw-r--r-- | src/kitemviews/private/kitemlistviewanimation.cpp | 21 |
1 files changed, 0 insertions, 21 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; } |
