From bddaa803d119d41857d1d8527fffab1c0dcd8bfa Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 19 Aug 2010 10:38:26 +0000 Subject: Convert to new debug --- client/widgets/multilist.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/widgets/multilist.cc b/client/widgets/multilist.cc index c4ebd60..8cd60b7 100644 --- a/client/widgets/multilist.cc +++ b/client/widgets/multilist.cc @@ -38,9 +38,7 @@ #include "messagebox.h" #include "common.h" #include "macrowindow.h" - -//#define DEBUG(fmt...) printf("MultiList (%p)",this);printf(fmt);fflush(stdout) -#define DEBUG(ftm...) +#include "debug.h" MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow) : Widget(node, macrowindow) @@ -107,11 +105,11 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow) if(innerwidget) { connect(innerwidget, SIGNAL(wasChanged()), this, SLOT(changed())); } else { - DEBUG("ERROR: Inner Widget %s not found (in multilist)!\n", + DEBUG(multilist, "ERROR: Inner Widget %s not found (in multilist)!\n", elem.attribute("innerwidget").toStdString().c_str()); } } else { - DEBUG("ERROR: Missing 'innerwidget' attribute on multilist!\n"); + DEBUG(multilist, "ERROR: Missing 'innerwidget' attribute on multilist!\n"); } layout->setContentsMargins(0,0,0,0); @@ -125,7 +123,7 @@ MultiList::~MultiList() void MultiList::changed() { innerwidget_has_changes = true; - DEBUG("Multilist innerwidget was changed\n"); + DEBUG(multilist, "Multilist innerwidget was changed\n"); } @@ -175,6 +173,8 @@ QString MultiList::value() void MultiList::setValue(QString values, QString source) { + DEBUG(multilist, "setValue(%s)", values.toStdString().c_str()); + if(isUserSource(source)) emit wasChanged(); QString value; -- cgit v1.2.3