Commit 90c1c898 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX #108] reduced some minimum sizes of several widgets. Maybe this fixes the...

[FIX #108] reduced some minimum sizes of several widgets. Maybe this fixes the maximize problem in unity.
parent da61d67f
...@@ -222,7 +222,6 @@ void WMainWindow::setupGUI() ...@@ -222,7 +222,6 @@ void WMainWindow::setupGUI()
m_glDock->setDocumentMode( true ); m_glDock->setDocumentMode( true );
setCentralWidget( m_glDock ); setCentralWidget( m_glDock );
WQtGLDockWidget* mainGLDock = new WQtGLDockWidget( "main", "3D View", m_glDock ); WQtGLDockWidget* mainGLDock = new WQtGLDockWidget( "main", "3D View", m_glDock );
mainGLDock->setMinimumWidth( 500 );
mainGLDock->getGLWidget()->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); mainGLDock->getGLWidget()->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
m_mainGLWidget = mainGLDock->getGLWidget(); m_mainGLWidget = mainGLDock->getGLWidget();
m_glDock->addDockWidget( Qt::RightDockWidgetArea, mainGLDock ); m_glDock->addDockWidget( Qt::RightDockWidgetArea, mainGLDock );
......
...@@ -44,9 +44,6 @@ WQtGLDockWidget::WQtGLDockWidget( QString viewTitle, QString dockTitle, QWidget* ...@@ -44,9 +44,6 @@ WQtGLDockWidget::WQtGLDockWidget( QString viewTitle, QString dockTitle, QWidget*
m_glWidget = boost::shared_ptr<WQtGLWidget>( new WQtGLWidget( viewTitle.toStdString(), m_panel, projectionMode, shareWidget ) ); m_glWidget = boost::shared_ptr<WQtGLWidget>( new WQtGLWidget( viewTitle.toStdString(), m_panel, projectionMode, shareWidget ) );
setMinimumSize( 240, 240 );
//setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum );
// add panel to layout. // add panel to layout.
m_layout->addWidget( m_glWidget.get() ); m_layout->addWidget( m_glWidget.get() );
m_panel->setLayout( m_layout ); m_panel->setLayout( m_layout );
......
...@@ -72,7 +72,7 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent ) ...@@ -72,7 +72,7 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent )
setObjectName( "Control Panel Dock" ); setObjectName( "Control Panel Dock" );
m_mainWindow = parent; m_mainWindow = parent;
setMinimumWidth( 300 ); setMinimumWidth( 200 );
m_panel = new QWidget( this ); m_panel = new QWidget( this );
m_moduleTreeWidget = new WQtTreeWidget( m_panel ); m_moduleTreeWidget = new WQtTreeWidget( m_panel );
...@@ -138,7 +138,7 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent ) ...@@ -138,7 +138,7 @@ WQtControlPanel::WQtControlPanel( WMainWindow* parent )
m_colormapper->setToolTip( "Reorder the textures." ); m_colormapper->setToolTip( "Reorder the textures." );
m_tabWidget = new QTabWidget( m_panel ); m_tabWidget = new QTabWidget( m_panel );
m_tabWidget->setMinimumHeight( 250 ); m_tabWidget->setMinimumHeight( 100 );
m_moduleDock = new QDockWidget( "Module Tree", m_mainWindow ); m_moduleDock = new QDockWidget( "Module Tree", m_mainWindow );
m_moduleDock->setObjectName( "Module Dock" ); m_moduleDock->setObjectName( "Module Dock" );
......
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