From d9f9e69ce1bdd6f898ee21cb2f14607bd90fa07b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 30 Sep 2011 23:22:56 +0200 Subject: Implement smooth-scrolling for horizontal and vertical scrollbars Currently only a smoothscrolling was provided into the scroll-direction, but not in case of the details-view where a horizontal scrollbar might be shown too. Some minor adjustments of the private KItemListSmoothScroller interface will be done later... --- src/views/dolphinview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index fe45541e3..a82008d25 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -719,8 +719,10 @@ void DolphinView::wheelEvent(QWheelEvent* event) const int numSteps = numDegrees / 15; setZoomLevel(zoomLevel() + numSteps); + event->accept(); + } else { + event->ignore(); } - event->accept(); } void DolphinView::activate() -- cgit v1.3