summaryrefslogtreecommitdiff
path: root/client/widgets
diff options
context:
space:
mode:
authordeva <deva>2010-08-19 10:38:26 +0000
committerdeva <deva>2010-08-19 10:38:26 +0000
commitbddaa803d119d41857d1d8527fffab1c0dcd8bfa (patch)
treeaa003240a2b15918a14e563ba5492b5d9ac32e2d /client/widgets
parent2f96b1102ee14cc5993ecd98aa0fefea81480059 (diff)
Convert to new debug
Diffstat (limited to 'client/widgets')
-rw-r--r--client/widgets/multilist.cc12
1 files 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;