diff options
| author | Luciano Montanaro <[email protected]> | 2008-02-12 09:27:26 +0000 |
|---|---|---|
| committer | Luciano Montanaro <[email protected]> | 2008-02-12 09:27:26 +0000 |
| commit | 4caebde3cb9e31fcb18b36e45afa287e9c03abd4 (patch) | |
| tree | dcefcca624c0746f82f7512de42278783ed7885c /src/dolphincolumnview.cpp | |
| parent | bad99f25fee78ccf36971da00e3ef18d493c22fe (diff) | |
Move the Ctrl-wheel zoom handling to dolphinview.
The specialized views still need to ignore the Ctrl-qualified wheel events, though.
svn path=/trunk/KDE/kdebase/apps/; revision=773976
Diffstat (limited to 'src/dolphincolumnview.cpp')
| -rw-r--r-- | src/dolphincolumnview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index 907daa0d6..7257cd830 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -338,6 +338,16 @@ void DolphinColumnView::resizeEvent(QResizeEvent* event) assureVisibleActiveColumn(); } +void DolphinColumnView::wheelEvent(QWheelEvent* event) +{ + // let Ctrl+wheel events propagate to the DolphinView for icon zooming + if ((event->modifiers() & Qt::ControlModifier) == Qt::ControlModifier) { + event->ignore(); + return; + } + QAbstractItemView::wheelEvent(event); +} + void DolphinColumnView::zoomIn() { if (isZoomInPossible()) { |
