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/dolphindetailsview.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/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 43d74db14..df5246bed 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -364,6 +364,16 @@ void DolphinDetailsView::resizeEvent(QResizeEvent* event) QTreeView::resizeEvent(event); } +void DolphinDetailsView::wheelEvent(QWheelEvent* event) +{ + // let Ctrl+wheel events propagate to the DolphinView for icon zooming + if ((event->modifiers() & Qt::ControlModifier) == Qt::ControlModifier) { + event->ignore(); + return; + } + QTreeView::wheelEvent(event); +} + void DolphinDetailsView::setSortIndicatorSection(DolphinView::Sorting sorting) { QHeaderView* headerView = header(); |
