changeset 389:8cfc71c8ec4b

Some temporary action debug output
author Chris Cannam
date Wed, 13 Aug 2014 09:09:16 +0100
parents 479f60cf85d8
children 3e5c8a03bcb7
files framework/MainWindowBase.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Fri Jul 25 17:02:44 2014 +0100
+++ b/framework/MainWindowBase.cpp	Wed Aug 13 09:09:16 2014 +0100
@@ -342,6 +342,7 @@
         if (sc.count() == 1 && !(sc[0] & Qt::KeyboardModifierMask)) {
             QShortcut *newSc = new QShortcut(sc, a->parentWidget());
             QObject::connect(newSc, SIGNAL(activated()), mapper, SLOT(map()));
+            cerr << "setting mapping for action " << a << ", name " << a->text() << endl;
             mapper->setMapping(newSc, a);
         }
     }
@@ -353,6 +354,7 @@
 {
     QAction *a = qobject_cast<QAction *>(o);
     if (a && a->isEnabled()) {
+        cerr << "about to call trigger on action " << a << ", name " << a->text() << endl;
         a->trigger();
     }
 }