┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kitemlistsmoothscroller.h
diff options
context:
space:
mode:
authorarnav dhamija <[email protected]>2016-09-25 23:13:22 +0530
committerarnav dhamija <[email protected]>2016-09-25 23:13:22 +0530
commit67099640b90588af1c72c340756253400da3e95b (patch)
tree16fe472cc13677496793c2a4967097e978379ef4 /src/kitemviews/private/kitemlistsmoothscroller.h
parentccd0a74eed22c35b5eb72e6f46e747f621169732 (diff)
parent1710304e9ba926d2aec4226d00974b826f9bcbc0 (diff)
Merge branch 'master' of git.kde.org:dolphin
Diffstat (limited to 'src/kitemviews/private/kitemlistsmoothscroller.h')
-rw-r--r--src/kitemviews/private/kitemlistsmoothscroller.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/kitemviews/private/kitemlistsmoothscroller.h b/src/kitemviews/private/kitemlistsmoothscroller.h
index fca4b0c53..a3576a3fd 100644
--- a/src/kitemviews/private/kitemlistsmoothscroller.h
+++ b/src/kitemviews/private/kitemlistsmoothscroller.h
@@ -77,6 +77,11 @@ public:
// stable.
bool requestScrollBarUpdate(int newMaximum);
+ /**
+ * Forwards wheel events to the scrollbar, ensuring smooth and proper scrolling
+ */
+ void handleWheelEvent(QWheelEvent* event);
+
protected:
virtual bool eventFilter(QObject* obj, QEvent* event);
@@ -85,13 +90,6 @@ private slots:
QAbstractAnimation::State oldState);
private:
- /**
- * Results into a smooth-scrolling of the target dependent on the direction
- * of the wheel event.
- */
- void handleWheelEvent(QWheelEvent* event);
-
-private:
bool m_scrollBarPressed;
bool m_smoothScrolling;
QScrollBar* m_scrollBar;