Commit 05291f7b authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] make the dummyWidget spacer go away if there are no navWidgets

parent 0cbdc6fd
......@@ -123,10 +123,15 @@ void WMainWindow::setupGUI()
addDockWidget( Qt::LeftDockWidgetArea, m_navSagittal.get() );
}
}
m_dummyWidget = new QDockWidget( this );
m_dummyWidget->setFeatures( QDockWidget::NoDockWidgetFeatures );
m_dummyWidget->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
addDockWidget( Qt::LeftDockWidgetArea, m_dummyWidget );
// we do not need the dummy widget if there are no other widgets.
if( m_navAxial || m_navCoronal || m_navSagittal )
{
m_dummyWidget = new QDockWidget( this );
m_dummyWidget->setFeatures( QDockWidget::NoDockWidgetFeatures );
m_dummyWidget->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
addDockWidget( Qt::LeftDockWidgetArea, m_dummyWidget );
}
// Default background color from config file
{
......
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