From fd3df6492bed12ef748000ddd38ea6d212619ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Wed, 2 Sep 2015 15:58:54 +0200 Subject: [PATCH] (#396) Made sure that Ctrl is needed for scroll wheel zoom --- ApplicationCode/UserInterface/RiuWellLogPlot.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp index d369377847..046832e6bd 100644 --- a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp @@ -121,13 +121,16 @@ void RiuWellLogPlot::wheelEvent(QWheelEvent* event) return; } - if (event->delta() > 0) + if (event->modifiers() & Qt::ControlModifier) { - m_plotDefinition->zoomDepth(RIU_SCROLLWHEEL_ZOOMFACTOR); - } - else - { - m_plotDefinition->zoomDepth(1.0/RIU_SCROLLWHEEL_ZOOMFACTOR); + if (event->delta() > 0) + { + m_plotDefinition->zoomDepth(RIU_SCROLLWHEEL_ZOOMFACTOR); + } + else + { + m_plotDefinition->zoomDepth(1.0/RIU_SCROLLWHEEL_ZOOMFACTOR); + } } event->accept();