# HG changeset patch # User Chris Cannam # Date 1308913811 -3600 # Node ID de2a049f213dec4440b80e30f4251c5b9f0c149d # Parent 54f3f0f29c95aa819dd6a87d43e068e19f6de4d5 Hide spacings around speed/fader controls and overview widget when in minimal mode diff -r 54f3f0f29c95 -r de2a049f213d main/MainWindow.cpp --- a/main/MainWindow.cpp Fri Jun 24 11:52:30 2011 +0100 +++ b/main/MainWindow.cpp Fri Jun 24 12:10:11 2011 +0100 @@ -4213,6 +4213,12 @@ menuBar()->removeAction(m_editMenu->menuAction()); } + QGridLayout *layout = qobject_cast + (centralWidget()->layout()); + if (layout) { + layout->setColumnMinimumWidth(0, wasMinimal ? 14 : 0); + } + //cerr << "Call to MainWindow::toggleViewMode"<< endl; m_playModeToolBar->setVisible(show); @@ -4230,8 +4236,7 @@ m_showPropertyBoxesAction->setVisible(show); m_showStatusBarAction->setVisible(show); - //layout()->activate(); - //layout()->update(); + m_playControlsSpacer->setVisible(show); if (wasMinimal) { resizeConstrained(settings.value("size").toSize());