Commit 71149f8e authored by Alexander Wiebel's avatar Alexander Wiebel

[ADD] option to put toolbars in one line

parent d9cd5b00
...@@ -12,7 +12,8 @@ default="Coordinate System Module,HUD,Navigation Slice Module" ...@@ -12,7 +12,8 @@ default="Coordinate System Module,HUD,Navigation Slice Module"
# hideAxial = yes # hide the axial view widget # hideAxial = yes # hide the axial view widget
# hideCoronal = yes # hide the coronal view widget # hideCoronal = yes # hide the coronal view widget
# hideSagittal = yes # hide the sagittal 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 [ge] # Settings for the graphics engine
# bgColor.r = .9 # background color (red part) # bgColor.r = .9 # background color (red part)
......
...@@ -212,7 +212,17 @@ void WMainWindow::setupCompatiblesToolBar() ...@@ -212,7 +212,17 @@ void WMainWindow::setupCompatiblesToolBar()
m_iconManager.addIcon( std::string( "o" ), o_xpm ); // duumy icon for modules m_iconManager.addIcon( std::string( "o" ), o_xpm ); // duumy icon for modules
m_compatiblesToolBar = new WQtToolBar( "Compatible Modules Toolbar", this ); 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 ); 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