comparison main/MainWindow.cpp @ 450:794850d517f2 toggle

Oops -- we don't want to hide the Playback menu
author Chris Cannam
date Fri, 24 Jun 2011 12:13:42 +0100
parents de2a049f213d
children 1604cb12ce11
comparison
equal deleted inserted replaced
449:de2a049f213d 450:794850d517f2
4187 // Restore the hidden menus. We need to make sure they go back 4187 // Restore the hidden menus. We need to make sure they go back
4188 // in the right places, so first remove the ones that need to 4188 // in the right places, so first remove the ones that need to
4189 // be to the right of them and then add those back in as well 4189 // be to the right of them and then add those back in as well
4190 // at the appropriate point 4190 // at the appropriate point
4191 menuBar()->removeAction(m_helpMenu->menuAction()); 4191 menuBar()->removeAction(m_helpMenu->menuAction());
4192 menuBar()->removeAction(m_playbackMenu->menuAction());
4192 menuBar()->removeAction(m_viewMenu->menuAction()); 4193 menuBar()->removeAction(m_viewMenu->menuAction());
4193 menuBar()->addMenu(m_editMenu); 4194 menuBar()->addMenu(m_editMenu);
4194 menuBar()->addMenu(m_viewMenu); 4195 menuBar()->addMenu(m_viewMenu);
4195 menuBar()->addMenu(m_paneMenu); 4196 menuBar()->addMenu(m_paneMenu);
4196 menuBar()->addMenu(m_layerMenu); 4197 menuBar()->addMenu(m_layerMenu);
4204 4205
4205 show = false; 4206 show = false;
4206 m_viewManager->setMinimalModeEnabled(true); 4207 m_viewManager->setMinimalModeEnabled(true);
4207 m_scroll->hide(); 4208 m_scroll->hide();
4208 4209
4209 menuBar()->removeAction(m_playbackMenu->menuAction());
4210 menuBar()->removeAction(m_transformsMenu->menuAction()); 4210 menuBar()->removeAction(m_transformsMenu->menuAction());
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 }