#1366 Wheel works without Ctrl pressed

This commit is contained in:
Jacob Støren
2017-03-27 18:22:09 +02:00
parent 0c834cdc0f
commit 233c248491

View File

@@ -52,8 +52,6 @@ bool RiuQwtPlotWheelZoomer::eventFilter(QObject * watched, QEvent * event)
{
QWheelEvent* wheelEvent = dynamic_cast<QWheelEvent*>(event);
if ( wheelEvent )
{
if ( wheelEvent->modifiers() )
{
double zoomFactor = 1.0/RIU_SCROLLWHEEL_ZOOMFACTOR;
if ( wheelEvent->delta() > 0 )
@@ -69,7 +67,7 @@ bool RiuQwtPlotWheelZoomer::eventFilter(QObject * watched, QEvent * event)
m_plot->replot();
emit zoomUpdated();
}
}
return false;
}