mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10136 Reset zoom by double-click in 3D view
This commit is contained in:
parent
c6234483e6
commit
85672f5ef5
@ -687,6 +687,21 @@ void RiuViewer::mousePressEvent( QMouseEvent* event )
|
||||
m_lastMousePressPosition = event->pos();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuViewer::mouseDoubleClickEvent( QMouseEvent* event )
|
||||
{
|
||||
if ( auto view = dynamic_cast<Rim3dView*>( m_rimView.p() ) )
|
||||
{
|
||||
view->zoomAll();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
caf::Viewer::mouseDoubleClickEvent( event );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -166,6 +166,7 @@ private:
|
||||
|
||||
void mouseReleaseEvent( QMouseEvent* event ) override;
|
||||
void mousePressEvent( QMouseEvent* event ) override;
|
||||
void mouseDoubleClickEvent( QMouseEvent* event ) override;
|
||||
|
||||
private:
|
||||
QLabel* m_infoLabel;
|
||||
|
Loading…
Reference in New Issue
Block a user