summaryrefslogtreecommitdiff
path: root/client/widgets/multilist.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/multilist.cc')
-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;