mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 09:22:13 -05:00
QtChart : Avoid zoom on right mouse button release
This commit is contained in:
1 parent
10a01972f3
commit
d5b108d2ef
1 file changed
+6
@@ -76,6 +76,12 @@ void RiuQtChartView::mouseReleaseEvent( QMouseEvent* event )
|
||||
}
|
||||
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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user