changeset 449:de2a049f213d toggle

Hide spacings around speed/fader controls and overview widget when in minimal mode
author Chris Cannam
date Fri, 24 Jun 2011 12:10:11 +0100
parents 54f3f0f29c95
children 794850d517f2
files main/MainWindow.cpp
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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<QGridLayout *>
+        (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());