comparison main/MainWindow.cpp @ 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
comparison
equal deleted inserted replaced
448:54f3f0f29c95 449:de2a049f213d
4211 menuBar()->removeAction(m_layerMenu->menuAction()); 4211 menuBar()->removeAction(m_layerMenu->menuAction());
4212 menuBar()->removeAction(m_paneMenu->menuAction()); 4212 menuBar()->removeAction(m_paneMenu->menuAction());
4213 menuBar()->removeAction(m_editMenu->menuAction()); 4213 menuBar()->removeAction(m_editMenu->menuAction());
4214 } 4214 }
4215 4215
4216 QGridLayout *layout = qobject_cast<QGridLayout *>
4217 (centralWidget()->layout());
4218 if (layout) {
4219 layout->setColumnMinimumWidth(0, wasMinimal ? 14 : 0);
4220 }
4221
4216 //cerr << "Call to MainWindow::toggleViewMode"<< endl; 4222 //cerr << "Call to MainWindow::toggleViewMode"<< endl;
4217 4223
4218 m_playModeToolBar->setVisible(show); 4224 m_playModeToolBar->setVisible(show);
4219 m_editToolBar->setVisible(show); 4225 m_editToolBar->setVisible(show);
4220 m_toolsToolBar->setVisible(show); 4226 m_toolsToolBar->setVisible(show);
4228 m_showAllTimeRulersAction->setVisible(show); 4234 m_showAllTimeRulersAction->setVisible(show);
4229 m_showZoomWheelsAction->setVisible(show); 4235 m_showZoomWheelsAction->setVisible(show);
4230 m_showPropertyBoxesAction->setVisible(show); 4236 m_showPropertyBoxesAction->setVisible(show);
4231 m_showStatusBarAction->setVisible(show); 4237 m_showStatusBarAction->setVisible(show);
4232 4238
4233 //layout()->activate(); 4239 m_playControlsSpacer->setVisible(show);
4234 //layout()->update();
4235 4240
4236 if (wasMinimal) { 4241 if (wasMinimal) {
4237 resizeConstrained(settings.value("size").toSize()); 4242 resizeConstrained(settings.value("size").toSize());
4238 } else { 4243 } else {
4239 QApplication::processEvents(); 4244 QApplication::processEvents();