Mercurial > hg > svgui
changeset 751:34c1203d21b5 tonioni
Optional printouts
author | Chris Cannam |
---|---|
date | Tue, 01 Apr 2014 13:42:26 +0100 |
parents | 394caa98d21a |
children | f428bd852580 |
files | widgets/ActivityLog.cpp |
diffstat | 1 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/widgets/ActivityLog.cpp Mon Mar 31 10:20:21 2014 +0100 +++ b/widgets/ActivityLog.cpp Tue Apr 01 13:42:26 2014 +0100 @@ -25,6 +25,13 @@ #include <iostream> +#include "base/Debug.h" + +using std::cerr; +using std::endl; + +#define PRINT_ACTIVITY 1 + ActivityLog::ActivityLog() : QDialog() { setWindowTitle(tr("Activity Log")); @@ -53,9 +60,16 @@ ActivityLog::activityHappened(QString name) { name = name.replace("&", ""); -// SVDEBUG << "ActivityLog::activityHappened(" << name << ")" << endl; + +#ifdef PRINT_ACTIVITY + cerr << "ActivityLog: " << name; if (name == m_prevName) { -// cerr << "(ignoring duplicate)" << endl; + cerr << " (duplicate)"; + } + cerr << endl; +#endif + + if (name == m_prevName) { return; } m_prevName = name;