From 819e9d404d2a72652764970651a66c4c9849c9c9 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 17 Aug 2010 11:23:02 +0000 Subject: Scroll improvement. Don't show console on startup. --- client/widgets/altcombobox.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'client/widgets/altcombobox.cc') diff --git a/client/widgets/altcombobox.cc b/client/widgets/altcombobox.cc index f60fb5c..b5cdab0 100644 --- a/client/widgets/altcombobox.cc +++ b/client/widgets/altcombobox.cc @@ -35,6 +35,8 @@ #include "multilist.h" #include "macrowindow.h" +#include "debug.h" + AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow) : Widget(node, macrowindow) { @@ -72,14 +74,14 @@ AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow) if(item.hasAttribute("value")) { altvalue = item.attribute("value"); } else { - printf("ERROR: altitem tag is missing the value attribute, " - "in altcombobox!\n"); + ERROR(altcombobos, "altitem tag is missing the value attribute, " + "in altcombobox!\n"); } if(item.hasAttribute("innerwidget")) { iwname = item.attribute("innerwidget"); } else { - printf("ERROR: altitem tag is missing the innerwidget attribute, " + ERROR(altcombobox, "altitem tag is missing the innerwidget attribute, " "in altcombobox!\n"); } @@ -108,7 +110,7 @@ AltComboBox::AltComboBox(QDomNode &node, MacroWindow *macrowindow) innerwidget = findWidget(iwname, true); if(innerwidget == NULL) { - printf("ERROR: Inner Widget %s not found (in altcombobox)!\n", + ERROR(altcombobox, "Inner Widget %s not found (in altcombobox)!\n", iwname.toStdString().c_str()); } @@ -182,9 +184,9 @@ void AltComboBox::onValueChange(int index) QComboBox *cmb = (QComboBox*)combobox->qwidget(); - printf("Value changed: %s altvalue: %s\n", - cmb->itemData(index).toString().toStdString().c_str(), - altvalue.toStdString().c_str()); + DEBUG(alcombobox, "Value changed: %s altvalue: %s\n", + cmb->itemData(index).toString().toStdString().c_str(), + altvalue.toStdString().c_str()); if(cmb->itemData(index).toString() == altvalue) { // altframe->setEnabled(true); -- cgit v1.2.3