mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
Sync plot toolbars with active plot view
This commit is contained in:
1 parent
a82b8f5753
commit
3efc8ba144
2 files changed
+4
-8
No files matched your search
@@ -216,6 +216,7 @@ void RimDockWindowController::setAsActiveViewer()
|
||||
else if ( auto plotView = dynamic_cast<RimPlotWindow*>( pdmView ) )
|
||||
{
|
||||
RiuPlotMainWindowTools::selectAsCurrentItem( plotView );
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -263,6 +263,7 @@ void RimViewWindow::fieldChangedByUi( const caf::PdmFieldHandle* changedField, c
|
||||
if ( isWindowVisible() )
|
||||
{
|
||||
onLoadDataAndUpdate();
|
||||
setAsActiveViewer();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -280,14 +281,8 @@ void RimViewWindow::updateWindowTitle()
|
||||
if ( viewWidget() && dockWidget() )
|
||||
{
|
||||
viewWidget()->setWindowTitle( windowTitle() );
|
||||
if ( dockWidget()->isFloating() && isActive() )
|
||||
{
|
||||
dockWidget()->setWindowTitle( "* " + windowTitle() );
|
||||
}
|
||||
else
|
||||
{
|
||||
dockWidget()->setWindowTitle( windowTitle() );
|
||||
}
|
||||
dockWidget()->setWindowTitle( windowTitle() );
|
||||
|
||||
if ( isActive() )
|
||||
{
|
||||
dockWidget()->setIcon( QIcon( ":/ActiveWindow.svg" ) );
|
||||
|
||||
Reference in new issue
Block a user