Commit f5c72b68 by Alexander Wiebel

[CHANGE] upper most item in module tree is selected from the beginning. This

makes the always applicable modules to show up from the beginning.
parent 0357c8f5
......@@ -98,6 +98,8 @@ void WMainWindow::setupGUI()
setWindowIcon( m_iconManager.getIcon( "logo" ) );
setWindowTitle( QApplication::translate( "MainWindow", "OpenWalnut (development version)", 0, QApplication::UnicodeUTF8 ) );
setupPermanentToolBar();
// the dataset browser instance is needed for the menu
m_datasetBrowser = new WQtDatasetBrowser( this );
m_datasetBrowser->setFeatures( QDockWidget::AllDockWidgetFeatures );
......@@ -246,7 +248,6 @@ void WMainWindow::setupGUI()
}
}
setupPermanentToolBar();
}
void WMainWindow::setupPermanentToolBar()
......
......@@ -154,6 +154,10 @@ WQtDatasetBrowser::WQtDatasetBrowser( WMainWindow* parent )
QShortcut* shortcut = new QShortcut( QKeySequence( Qt::Key_Delete ), m_roiTreeWidget );
connect( shortcut, SIGNAL( activated() ), this, SLOT( deleteROITreeItem() ) );
// we want the upper most tree item to be selected. This helps to make the always compatible modules
// show up in the tool bar from the beginning. And ... it doesn't hurt.
m_tiModules->setSelected( true );
}
WQtDatasetBrowser::~WQtDatasetBrowser()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment