Commit 0fb17de9 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] this hopefully fixes the strange display of the slider on some

machines
parent ce0b3c34
......@@ -123,6 +123,10 @@ 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 );
// Default background color from config file
{
......
......@@ -208,6 +208,7 @@ private:
boost::shared_ptr< WQtNavGLWidget > m_navAxial; //!< the axial view widget GL widget of the GUI
boost::shared_ptr< WQtNavGLWidget > m_navCoronal; //!< the coronal view widget GL widget of the GUI
boost::shared_ptr< WQtNavGLWidget > m_navSagittal; //!< the sgittal view widget GL widget of the GUI
QDockWidget* m_dummyWidget; //!< The dummywidget serves as spacer in the dockwidget area;
/**
* All registered WQtCustomDockWidgets.
......
......@@ -45,17 +45,17 @@ WQtNavGLWidget::WQtNavGLWidget( QString title, QWidget* parent, int maxValue, st
QSlider *slider = new QSlider( Qt::Horizontal );
slider->setMaximum( maxValue );
slider->setValue( maxValue / 2 );
slider->resize( 150, 20 );
slider->setSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Minimum );
QWidget* panel = new QWidget( this );
QVBoxLayout* layout = new QVBoxLayout();
m_glWidget = boost::shared_ptr<WQtGLWidget>( new WQtGLWidget( title.toStdString(), panel, WGECamera::ORTHOGRAPHIC ) );
m_glWidget->setFixedSize( 150, 150 );
m_glWidget->initialize();
setFixedSize( 160, 200 );
setMinimumSize( 160, 200 );
setSizePolicy ( QSizePolicy::Preferred, QSizePolicy::Maximum );
m_scene = new WGEScene();
m_scene->setDataVariance( osg::Object::DYNAMIC );
......
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