diff widgets/TipDialog.cpp @ 587:4806715f7a19

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:27:05 +0100
parents f4960f8ce798
children d632a1e87018
line wrap: on
line diff
--- a/widgets/TipDialog.cpp	Tue Jun 14 14:48:29 2011 +0100
+++ b/widgets/TipDialog.cpp	Tue Jun 14 15:27:05 2011 +0100
@@ -114,7 +114,7 @@
 void
 TipDialog::readTips()
 {
-    DEBUG << "TipDialog::readTips" << endl;
+    SVDEBUG << "TipDialog::readTips" << endl;
 
     QString language = QLocale::system().name();
     QString filename = QString(":i18n/tips_%1.xml").arg(language);
@@ -134,7 +134,7 @@
 
     QFile file(filename);
 
-    DEBUG << "TipDialog::readTips from " << filename << endl;
+    SVDEBUG << "TipDialog::readTips from " << filename << endl;
 
     QXmlInputSource source(&file);
     
@@ -188,11 +188,11 @@
 {
     QString name = qName.toLower();
 
-    DEBUG << "TipFileParser::startElement(" << name << ")" << endl;
+    SVDEBUG << "TipFileParser::startElement(" << name << ")" << endl;
 
     if (name == "tips") {
         QString caption = attributes.value("caption");
-        DEBUG << "TipFileParser::caption = " << caption << endl;
+        SVDEBUG << "TipFileParser::caption = " << caption << endl;
         if (caption != "") m_dialog->m_caption = caption;
     } else if (name == "tip") {
         if (m_inTip) {
@@ -224,7 +224,7 @@
         m_dialog->m_tips[m_dialog->m_tips.size()-1] += ">";
     }
     
-    DEBUG << "TipFileParser::startElement done" << endl;
+    SVDEBUG << "TipFileParser::startElement done" << endl;
     return true;
 }
 
@@ -263,7 +263,7 @@
 bool
 TipDialog::TipFileParser::characters(const QString &text)
 {
-    DEBUG << "TipFileParser::characters(" << text << ")" << endl;
+    SVDEBUG << "TipFileParser::characters(" << text << ")" << endl;
 
     if (m_inText || m_inHtml) {
         m_dialog->m_tips[m_dialog->m_tips.size()-1] += text;