Commit 29cd75e8 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] correted some sizes in qtgui

parent e41dd059
......@@ -77,8 +77,9 @@ void WMainWindow::setupGUI()
m_mainGLWidget->initialize();
setCentralWidget( m_mainGLWidget.get() );
//TODO(all): this is commented out
// initially 3 views
//m_navAxial = boost::shared_ptr< WQtNavGLWidget >( new WQtNavGLWidget( "axial", 160, "axialPos" ) );
// m_navAxial = boost::shared_ptr< WQtNavGLWidget >( new WQtNavGLWidget( "axial", 160, "axialPos" ) );
//m_navAxial->getGLWidget()->initialize();
//addDockWidget( Qt::LeftDockWidgetArea, m_navAxial.get() );
......@@ -116,10 +117,6 @@ void WMainWindow::setupToolBar()
m_toolBar->addPushButton( QString( "buttonSave" ), QString( "File" ), m_iconManager.getIcon( "save" ), QString( "Save" ) );
m_toolBar->addPushButton( QString( "buttonQuit" ), QString( "File" ), m_iconManager.getIcon( "quit" ), QString( "Exit" ) );
m_toolBar->getButton( QString( "buttonLoad" ) )->setMaximumSize( 50, 24 );
m_toolBar->getButton( QString( "buttonSave" ) )->setMaximumSize( 50, 24 );
m_toolBar->getButton( QString( "buttonQuit" ) )->setMaximumSize( 50, 24 );
// the parent (this) will take care for deleting the shortcut
QShortcut* shortcut = new QShortcut( QKeySequence( tr( "Ctrl+Q", "File|Exit" ) ), this );
connect( shortcut, SIGNAL( activated() ), this, SLOT( close() ) );
......@@ -229,6 +226,8 @@ void WMainWindow::closeEvent( QCloseEvent* e )
// now nobody acesses the osg anymore
// clean up gl widgets
m_mainGLWidget->close();
//TODO(all): this is commented out
//m_navAxial->close();
//m_navCoronal->close();
//m_navSagittal->close();
......
......@@ -37,8 +37,8 @@ WQtSliderWithEdit::WQtSliderWithEdit( QString name, QWidget* parent )
m_layout.addWidget( &m_slider );
m_layout.addWidget( &m_edit );
m_edit.resize( 10, m_edit.size().height() );
m_edit.setMaximumWidth( 25 );
m_edit.resize( m_edit.minimumSizeHint().width() , m_edit.size().height() );
m_edit.setMaximumWidth( m_edit.minimumSizeHint().width() );
setLayout( &m_layout );
......
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