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/dolphincolumnwidget.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/dolphincolumnwidget.cpp')
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index 3eed9f4b3..ba5632502 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -364,6 +364,16 @@ void DolphinColumnWidget::contextMenuEvent(QContextMenuEvent* event) } } +void DolphinColumnWidget::wheelEvent(QWheelEvent* event) +{ + // let Ctrl+wheel events propagate to the DolphinView for icon zooming + if ((event->modifiers() & Qt::ControlModifier) == Qt::ControlModifier) { + event->ignore(); + return; + } + QListView::wheelEvent(event); +} + void DolphinColumnWidget::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QListView::selectionChanged(selected, deselected); |
