diff options
| author | Peter Penz <[email protected]> | 2011-09-30 23:22:56 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-30 23:27:09 +0200 |
| commit | d9f9e69ce1bdd6f898ee21cb2f14607bd90fa07b (patch) | |
| tree | 3815617d32e78006a3f551c35665ad80420a3e08 /src/views/dolphinview.cpp | |
| parent | 7424fcc3314a63d0716cb428a8b8de24b23e0279 (diff) | |
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...
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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() |
