# HG changeset patch # User Chris Cannam # Date 1407926985 -3600 # Node ID ff43500426da7ff6420edbb4ae10335b5301f15d # Parent 75af0658be8487478a42375fb1d056238aac24d9 More debug diff -r 75af0658be84 -r ff43500426da framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Aug 13 11:32:35 2014 +0100 +++ b/framework/MainWindowBase.cpp Wed Aug 13 11:49:45 2014 +0100 @@ -340,6 +340,12 @@ this, SLOT(menuActionMapperInvoked(QObject *))); } + cerr << "examining menu: " << menu << ", " << menu->title() << endl; + QMenu *pm = qobject_cast(menu->parent()); + if (pm) { + cerr << "(sub-menu of: " << pm << ", " << pm->title() << ")" << endl; + } + foreach (QAction *a, menu->actions()) { QWidgetList ww = a->associatedWidgets(); bool hasButton = false; @@ -355,7 +361,7 @@ QShortcut *newSc = new QShortcut(sc, a->parentWidget()); QObject::connect(newSc, SIGNAL(activated()), m_menuShortcutMapper, SLOT(map())); - cerr << "setting mapping for action " << a << ", name " << a->text() << " on mapper " << m_menuShortcutMapper << " through shortcut " << newSc << endl; + cerr << "setting mapping for action " << a << ", name " << a->text() << " on mapper " << m_menuShortcutMapper << " through shortcut " << newSc << " with key " << newSc->key().toString() << endl; m_menuShortcutMapper->setMapping(newSc, a); m_appShortcuts.push_back(newSc); }