diff options
| author | Frank Reininghaus <[email protected]> | 2009-10-25 10:41:15 +0000 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2009-10-25 10:41:15 +0000 |
| commit | 499e8723f4b82ed1e9abbee91594ab8170421e11 (patch) | |
| tree | 1dd1428c806993fd5dcc41a0f41bda5ae7f32017 /src/dolphiniconsview.cpp | |
| parent | 9c2f205a097e043a6ea301d4e17802507c35d4d0 (diff) | |
Do not zoom the icons if the user presses Control and the left mouse
button while using the mouse wheel. The user is probably trying to
scroll the view during a rubberband selection in that case.
Also simplify the code a bit by handling the icon zooming in
DolphinView::eventFilter().
BUG: 190703
svn path=/trunk/KDE/kdebase/apps/; revision=1040021
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index bd070ad1c..e7448ed6d 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -314,12 +314,6 @@ void DolphinIconsView::keyPressEvent(QKeyEvent* event) void DolphinIconsView::wheelEvent(QWheelEvent* event) { - // let Ctrl+wheel events propagate to the DolphinView for icon zooming - if (event->modifiers() & Qt::ControlModifier) { - event->ignore(); - return; - } - horizontalScrollBar()->setSingleStep(m_itemSize.width() / 10); verticalScrollBar()->setSingleStep(m_itemSize.height() / 10); |
