┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kitemlistviewanimation.h
diff options
context:
space:
mode:
authorEugene Popov <[email protected]>2022-02-13 12:16:34 +0000
committerFelix Ernst <[email protected]>2022-02-13 12:16:34 +0000
commita05343530d0f43434715888902067512309098ce (patch)
tree18876595d04599620acc96684f314a21119b6ed0 /src/kitemviews/private/kitemlistviewanimation.h
parente9bd295b3cce63048b141d1fdba844091419a973 (diff)
Fix zooming animation
Current implementation of the zooming animation is a bit buggy. This MR fixes the following issues: * in the Icon view mode, the icons sometimes "jump" * in the Compact view mode, the labels sometimes are cut off BUG: 449179
Diffstat (limited to 'src/kitemviews/private/kitemlistviewanimation.h')
-rw-r--r--src/kitemviews/private/kitemlistviewanimation.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kitemviews/private/kitemlistviewanimation.h b/src/kitemviews/private/kitemlistviewanimation.h
index 8d11dbf89..5e0ebf982 100644
--- a/src/kitemviews/private/kitemlistviewanimation.h
+++ b/src/kitemviews/private/kitemlistviewanimation.h
@@ -32,7 +32,9 @@ public:
MovingAnimation,
CreateAnimation,
DeleteAnimation,
- ResizeAnimation
+ ResizeAnimation,
+ IconResizeAnimation,
+ AnimationTypeCount
};
explicit KItemListViewAnimation(QObject* parent = nullptr);
@@ -79,8 +81,6 @@ private Q_SLOTS:
void slotFinished();
private:
- enum { AnimationTypeCount = 4 };
-
Qt::Orientation m_scrollOrientation;
qreal m_scrollOffset;
QHash<QGraphicsWidget*, QPropertyAnimation*> m_animation[AnimationTypeCount];