changeset 759:e2d2ac12577c

Tidy
author Chris Cannam
date Wed, 13 Aug 2014 16:09:11 +0100
parents 66aa86070aa4
children 5b4206f7d7d4
files main/MainWindow.cpp
diffstat 1 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Aug 13 12:34:45 2014 +0100
+++ b/main/MainWindow.cpp	Wed Aug 13 16:09:11 2014 +0100
@@ -1029,7 +1029,6 @@
 {
     if (m_paneMenu) {
 	m_paneActions.clear();
-        cerr << "clearing pane menu " << m_paneMenu << endl;
 	m_paneMenu->clear();
     } else {
 	m_paneMenu = menuBar()->addMenu(tr("&Pane"));
@@ -1066,7 +1065,6 @@
     m_paneActions[action] = LayerConfiguration(LayerFactory::TimeRuler);
     m_keyReference->registerShortcut(action);
     menu->addAction(action);
-    cerr << "created new pane action " << action << ", name " << action->text() << endl;
 
     menu->addSeparator();
 
@@ -1265,7 +1263,6 @@
                     } else {
                         
                         if (!submenu) {
-                            cerr << "adding submenu of name " << mainText << " to menu " << menu << ", " << menu->title() << endl;
                             submenu = menu->addMenu(mainText);
                             submenu->setTearOffEnabled(true);
                         } else if (isDefault) {
@@ -1440,20 +1437,6 @@
     m_keyReference->registerShortcut(raction); // rename after delete, so delete layer goes next to delete pane
     m_keyReference->registerShortcut(eaction); // edit also after delete
 
-    cerr << "pane menu contains:" << endl;
-    foreach (QAction *a, m_paneMenu->actions()) {
-        if (a->isSeparator()) {
-            cerr << "-----" << endl;
-            continue;
-        }
-        cerr << a->text() << " " << a->shortcut().toString() << endl;
-        if (a->menu()) {
-            foreach (QAction *aa, a->menu()->actions()) {
-                cerr << "   " << aa->text() << "   " << aa->shortcut().toString() << endl;
-            }
-        }
-    }
-
     finaliseMenus();
 }