Commit 45491b98 by Alexander Wiebel

[FIX #377] made spacer widget removable

parent 603c675c
......@@ -214,8 +214,10 @@ void WMainWindow::setupGUI()
// 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 = new QDockWidget( "Spacer", this );
QWidget* tmp = new QWidget( m_dummyWidget );
m_dummyWidget->setTitleBarWidget( tmp );
m_dummyWidget->setFeatures( QDockWidget::DockWidgetClosable );
m_dummyWidget->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Ignored );
addDockWidget( Qt::LeftDockWidgetArea, m_dummyWidget );
}
......
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