Mercurial > hg > sonic-visualiser
changeset 758:66aa86070aa4
Debug out
author | Chris Cannam |
---|---|
date | Wed, 13 Aug 2014 12:34:45 +0100 |
parents | 34f43480f7ca |
children | e2d2ac12577c |
files | main/MainWindow.cpp |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Wed Aug 13 11:49:45 2014 +0100 +++ b/main/MainWindow.cpp Wed Aug 13 12:34:45 2014 +0100 @@ -1029,6 +1029,7 @@ { if (m_paneMenu) { m_paneActions.clear(); + cerr << "clearing pane menu " << m_paneMenu << endl; m_paneMenu->clear(); } else { m_paneMenu = menuBar()->addMenu(tr("&Pane")); @@ -1264,6 +1265,7 @@ } 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) { @@ -1438,6 +1440,20 @@ 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(); }