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/dolphindetailsview.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/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 3dca2da28..9d32dd247 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -401,12 +401,6 @@ void DolphinDetailsView::resizeEvent(QResizeEvent* event) void DolphinDetailsView::wheelEvent(QWheelEvent* event) { - // let Ctrl+wheel events propagate to the DolphinView for icon zooming - if (event->modifiers() & Qt::ControlModifier) { - event->ignore(); - return; - } - const int height = m_decorationSize.height(); const int step = (height >= KIconLoader::SizeHuge) ? height / 10 : (KIconLoader::SizeHuge - height) / 2; verticalScrollBar()->setSingleStep(step); |
