Mercurial > hg > sonic-visualiser
changeset 753:61c0f32d93b3
Some temporary action debug output
author | Chris Cannam |
---|---|
date | Wed, 13 Aug 2014 09:09:16 +0100 |
parents | 37a65d229dc5 |
children | 4d01787723df |
files | .hgsubstate main/MainWindow.cpp |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsubstate Mon Aug 11 11:30:18 2014 +0100 +++ b/.hgsubstate Wed Aug 13 09:09:16 2014 +0100 @@ -1,5 +1,5 @@ d16f0fd6db6104d87882bc43788a3bb1b0f8c528 dataquay 879bdc878826bebec67130326f99397c430419b1 sv-dependency-builds -479f60cf85d8e267ae22a51ce2d65015f55dc392 svapp +8cfc71c8ec4b16c9fe0ceb5208c3de02ebd175e9 svapp ad14e7ed096da9f3819371e0ac49082b6b34d4fa svcore 8bb9320f78a420033e26bc62cd0caa2588af5056 svgui
--- a/main/MainWindow.cpp Mon Aug 11 11:30:18 2014 +0100 +++ b/main/MainWindow.cpp Wed Aug 13 09:09:16 2014 +0100 @@ -1065,6 +1065,7 @@ 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(); @@ -3424,6 +3425,8 @@ { QObject *s = sender(); QAction *action = dynamic_cast<QAction *>(s); + + cerr << "addPane: sender is " << s << ", action is " << action << ", name " << action->text() << endl; if (!action) { cerr << "WARNING: MainWindow::addPane: sender is not an action" @@ -3436,6 +3439,11 @@ if (i == m_paneActions.end()) { cerr << "WARNING: MainWindow::addPane: unknown action " << action->objectName() << endl; + cerr << "known actions are:" << endl; + for (PaneActionMap::const_iterator i = m_paneActions.begin(); + i != m_paneActions.end(); ++i) { + cerr << i->first << ", name " << i->first->text() << endl; + } return; }