mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
QtChart : Avoid zoom on right mouse button release
This commit is contained in:
parent
10a01972f3
commit
d5b108d2ef
@ -76,6 +76,12 @@ void RiuQtChartView::mouseReleaseEvent( QMouseEvent* event )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if ( event->button() == Qt::RightButton )
|
||||||
|
{
|
||||||
|
// Skip QtCharts::QChartView::mouseReleaseEvent() to avoid zoom on right mouse button
|
||||||
|
return QGraphicsView::mouseReleaseEvent( event );
|
||||||
|
}
|
||||||
|
|
||||||
QtCharts::QChartView::mouseReleaseEvent( event );
|
QtCharts::QChartView::mouseReleaseEvent( event );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user