From a9a3c796f7a01202cc10d6a0b880e773fd08a422 Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Sat, 8 Aug 2009 12:04:15 -0400 Subject: [PATCH] Hotfix for resizable controller rack Apparently I didn't compile the latest version of my changes and there was a lurking error. This has been fixed. --- src/gui/widgets/controller_rack_view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/controller_rack_view.cpp b/src/gui/widgets/controller_rack_view.cpp index 6f63a6092..3d94a6228 100644 --- a/src/gui/widgets/controller_rack_view.cpp +++ b/src/gui/widgets/controller_rack_view.cpp @@ -46,6 +46,7 @@ controllerRackView::controllerRackView( ) : { setMinimumWidth( 250 ); setMaximumWidth( 250 ); + resize( 250, 160 ); setWindowIcon( embed::getIconPixmap( "controller" ) ); setWindowTitle( tr( "Controller Rack" ) ); @@ -55,7 +56,6 @@ controllerRackView::controllerRackView( ) : m_scrollArea->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff ); m_scrollArea->setPalette( QApplication::palette( m_scrollArea ) ); m_scrollArea->setMinimumHeight( 64 ); - m_scrollArea->setHeight( 128 ); m_addButton = new QPushButton( this ); m_addButton->setText( tr( "Add" ) ); @@ -72,7 +72,7 @@ controllerRackView::controllerRackView( ) : QVBoxLayout * layout = new QVBoxLayout(); layout->addWidget( m_scrollArea ); layout->addWidget( m_addButton ); - this->setLayout( layout ); + setLayout( layout ); QMdiSubWindow * subWin = engine::getMainWindow()->workspace()->addSubWindow( this );