mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Some cleanup
This commit is contained in:
1 parent
41e40e5810
commit
2faa1cd149
16 files changed
+35
-87
No files matched your search
@@ -493,11 +493,11 @@ void RiuMainWindowBase::createTreeViews( int numberOfTrees )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindowBase::setUpCentralDockWidget()
|
||||
{
|
||||
m_centralDockWidget = RiuDockWidgetTools::createDockWidget( "Welcome", RiuDockWidgetTools::welcomeScreenName(), this );
|
||||
QLabel* welcome = new QLabel();
|
||||
welcome->setAutoFillBackground( true );
|
||||
welcome->setStyleSheet( "QLabel { background-color: darkgrey; }" );
|
||||
m_centralDockWidget->setWidget( welcome );
|
||||
m_centralDockWidget = RiuDockWidgetTools::createDockWidget( "", RiuDockWidgetTools::centralScreenName(), this );
|
||||
QLabel* label = new QLabel();
|
||||
label->setAutoFillBackground( true );
|
||||
label->setStyleSheet( "QLabel { background-color: darkgrey; }" );
|
||||
m_centralDockWidget->setWidget( label );
|
||||
m_centralDockWidget->setFeature( ads::CDockWidget::NoTab, true );
|
||||
dockManager()->setCentralWidget( m_centralDockWidget );
|
||||
}
|
||||
@@ -702,7 +702,7 @@ void RiuMainWindowBase::addDefaultEntriesToWindowsMenu()
|
||||
keys.sort();
|
||||
for ( auto& key : keys )
|
||||
{
|
||||
if ( key == RiuDockWidgetTools::welcomeScreenName() ) continue;
|
||||
if ( key == RiuDockWidgetTools::centralScreenName() ) continue;
|
||||
auto dock = dockMap[key];
|
||||
dockWindowsMenu->addAction( dock->toggleViewAction() );
|
||||
}
|
||||
@@ -742,14 +742,6 @@ void RiuMainWindowBase::addDefaultEntriesToWindowsMenu()
|
||||
QAction* exportLayoutAction = m_windowMenu->addAction( "Export Layout to Clipboard" );
|
||||
connect( exportLayoutAction, SIGNAL( triggered() ), this, SLOT( exportDockLayout() ) );
|
||||
}
|
||||
|
||||
caf::CmdFeatureManager* cmdFeatureMgr = caf::CmdFeatureManager::instance();
|
||||
|
||||
auto featureNames = windowsMenuFeatureNames();
|
||||
for ( const auto& name : featureNames )
|
||||
{
|
||||
m_windowMenu->addAction( cmdFeatureMgr->action( name ) );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user