Mercurial > hg > svgui
diff widgets/TipDialog.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | 1fe7951a61e8 |
children | 4806715f7a19 |
line wrap: on
line diff
--- a/widgets/TipDialog.cpp Thu May 12 17:31:43 2011 +0100 +++ b/widgets/TipDialog.cpp Mon May 16 17:19:25 2011 +0100 @@ -114,7 +114,7 @@ void TipDialog::readTips() { - std::cerr << "TipDialog::readTips" << std::endl; + DEBUG << "TipDialog::readTips" << endl; QString language = QLocale::system().name(); QString filename = QString(":i18n/tips_%1.xml").arg(language); @@ -134,7 +134,7 @@ QFile file(filename); - std::cerr << "TipDialog::readTips from " << filename << std::endl; + DEBUG << "TipDialog::readTips from " << filename << endl; QXmlInputSource source(&file); @@ -188,11 +188,11 @@ { QString name = qName.toLower(); - std::cerr << "TipFileParser::startElement(" << name << ")" << std::endl; + DEBUG << "TipFileParser::startElement(" << name << ")" << endl; if (name == "tips") { QString caption = attributes.value("caption"); - std::cerr << "TipFileParser::caption = " << caption << std::endl; + DEBUG << "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] += ">"; } - std::cerr << "TipFileParser::startElement done" << std::endl; + DEBUG << "TipFileParser::startElement done" << endl; return true; } @@ -263,7 +263,7 @@ bool TipDialog::TipFileParser::characters(const QString &text) { - std::cerr << "TipFileParser::characters(" << text << ")" << std::endl; + DEBUG << "TipFileParser::characters(" << text << ")" << endl; if (m_inText || m_inHtml) { m_dialog->m_tips[m_dialog->m_tips.size()-1] += text;