diff options
| author | Peter Penz <[email protected]> | 2011-08-20 13:52:36 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-08-20 13:54:20 +0200 |
| commit | 074acd8009765f5e6ad5cb7f1887d50f4aea5a58 (patch) | |
| tree | d182a0fc286dfe214bd33bd5b04a1d6605958685 /src/kitemviews/kitemlistcontainer.h | |
| parent | dbe2152912cc58f1d2bfba187175ec0e4b3e4761 (diff) | |
Fix possible endless recursion when using the rubberband
If the autoscrolling has been activated when using the rubberband,
it was possible that an endless recursion occured as the
autoscrolling triggered a change of the rubberband which triggered
a change of the autoscrolling etc.
Diffstat (limited to 'src/kitemviews/kitemlistcontainer.h')
| -rw-r--r-- | src/kitemviews/kitemlistcontainer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kitemviews/kitemlistcontainer.h b/src/kitemviews/kitemlistcontainer.h index 0cda436d0..5f846a9bf 100644 --- a/src/kitemviews/kitemlistcontainer.h +++ b/src/kitemviews/kitemlistcontainer.h @@ -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 |
