mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
Selects plot on right-click as well
This commit is contained in:
@@ -570,9 +570,10 @@ bool RiuQwtPlotWidget::eventFilter( QObject* watched, QEvent* event )
|
||||
return true;
|
||||
}
|
||||
|
||||
if ( mouseEvent->type() == QMouseEvent::MouseButtonPress && ( mouseEvent->button() == Qt::LeftButton ) && m_plotDefinition )
|
||||
if ( ( mouseEvent->type() == QMouseEvent::MouseButtonPress ) &&
|
||||
( mouseEvent->button() == Qt::LeftButton || mouseEvent->button() == Qt::RightButton ) && m_plotDefinition )
|
||||
{
|
||||
// Select the plot clicked at in the Project Tree
|
||||
// Select the plot clicked at in the Project Tree for both left and right mouse button clicks
|
||||
RiuPlotMainWindowTools::selectAsCurrentItem( m_plotDefinition );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user