]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistcontainer.h
Fix possible endless recursion when using the rubberband
[dolphin.git] / src / kitemviews / kitemlistcontainer.h
index 0cda436d011eece92264baee914e6a2f51a1eafd..5f846a9bfa5230e98e3b25fe332a7099b9fc8102 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <libdolphin_export.h>
 
+#include <QAbstractAnimation>
 #include <QAbstractScrollArea>
 
 class KItemListController;
@@ -59,6 +60,7 @@ protected:
 private slots:
     void slotModelChanged(KItemModelBase* current, KItemModelBase* previous);
     void slotViewChanged(KItemListView* current, KItemListView* previous);
+    void slotAnimationStateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
     void scrollTo(qreal offset);
     void updateScrollBars();
 
@@ -69,8 +71,8 @@ private:
 private:
     KItemListController* m_controller;
 
-    bool m_sliderMovedByUser;
-    QPropertyAnimation* m_viewOffsetAnimation;
+    bool m_smoothScrolling;
+    QPropertyAnimation* m_smoothScrollingAnimation;
 };
 
 #endif