mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1366 Wheel works without Ctrl pressed
This commit is contained in:
@@ -52,8 +52,6 @@ bool RiuQwtPlotWheelZoomer::eventFilter(QObject * watched, QEvent * event)
|
|||||||
{
|
{
|
||||||
QWheelEvent* wheelEvent = dynamic_cast<QWheelEvent*>(event);
|
QWheelEvent* wheelEvent = dynamic_cast<QWheelEvent*>(event);
|
||||||
if ( wheelEvent )
|
if ( wheelEvent )
|
||||||
{
|
|
||||||
if ( wheelEvent->modifiers() )
|
|
||||||
{
|
{
|
||||||
double zoomFactor = 1.0/RIU_SCROLLWHEEL_ZOOMFACTOR;
|
double zoomFactor = 1.0/RIU_SCROLLWHEEL_ZOOMFACTOR;
|
||||||
if ( wheelEvent->delta() > 0 )
|
if ( wheelEvent->delta() > 0 )
|
||||||
@@ -69,7 +67,7 @@ bool RiuQwtPlotWheelZoomer::eventFilter(QObject * watched, QEvent * event)
|
|||||||
m_plot->replot();
|
m_plot->replot();
|
||||||
emit zoomUpdated();
|
emit zoomUpdated();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user