Commit 71149f8e by Alexander Wiebel

[ADD] option to put toolbars in one line

parent d9cd5b00
......@@ -12,7 +12,8 @@ default="Coordinate System Module,HUD,Navigation Slice Module"
# hideAxial = yes # hide the axial view widget
# hideCoronal = yes # hide the coronal view widget
# hideSagittal = yes # hide the sagittal view widget
#toolBarIconText = no # show text next to module's icon
# toolBarIconText = no # show text next to module's icon
# useToolBarBreak = yes # put compatibles toolbar in separate row
[ge] # Settings for the graphics engine
# bgColor.r = .9 # background color (red part)
......
......@@ -212,7 +212,17 @@ void WMainWindow::setupCompatiblesToolBar()
m_iconManager.addIcon( std::string( "o" ), o_xpm ); // duumy icon for modules
m_compatiblesToolBar = new WQtToolBar( "Compatible Modules Toolbar", this );
addToolBarBreak( Qt::TopToolBarArea );
// optional toolbar break
{
bool useToolBarBreak = true;
WPreferences::getPreference( "qt4gui.useToolBarBreak", &useToolBarBreak );
if( useToolBarBreak )
{
addToolBarBreak( Qt::TopToolBarArea );
}
}
addToolBar( Qt::TopToolBarArea, m_compatiblesToolBar );
}
......
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