diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:22:13 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:22:13 -0600 |
commit | 9abf98be4f3111c54f13dcb44902a275bd2d7169 (patch) | |
tree | d6771816657222c79deae56c23c2d6339cba27e3 /src/xml_to_data/xml_to_data.cpp | |
parent | 2b18f76290022900fe896ebac6b2b6da30a9f136 (diff) | |
download | piklab-9abf98be4f3111c54f13dcb44902a275bd2d7169.tar.gz piklab-9abf98be4f3111c54f13dcb44902a275bd2d7169.zip |
Rename additional global TQt functions
Diffstat (limited to 'src/xml_to_data/xml_to_data.cpp')
-rw-r--r-- | src/xml_to_data/xml_to_data.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/xml_to_data/xml_to_data.cpp b/src/xml_to_data/xml_to_data.cpp index 8176be1..ef41a8d 100644 --- a/src/xml_to_data/xml_to_data.cpp +++ b/src/xml_to_data/xml_to_data.cpp @@ -19,7 +19,7 @@ TQDomElement XmlToData::findUniqueElement(TQDomElement parent, const TQString &t while ( !child.isNull() ) { if ( child.nodeName()==tag && child.isElement() && (attribute.isEmpty() || child.toElement().attribute(attribute)==value) ) { - if ( !element.isNull() ) qFatal(TQString("Duplicated element \"%1/%2\"").arg(tag).arg(value)); + if ( !element.isNull() ) tqFatal(TQString("Duplicated element \"%1/%2\"").arg(tag).arg(value)); element = child.toElement(); } child = child.nextSibling(); @@ -34,38 +34,38 @@ void XmlToData::checkTagNames(TQDomElement element, const TQString &tag, for (uint i=0; i<uint(list.count()); i++) { if ( !list.item(i).isElement() ) continue; TQString name = list.item(i).toElement().attribute("name"); - if ( names.find(name)==names.end() ) qFatal(TQString("Illegal name %1 for %2 element").arg(name).arg(tag)); + if ( names.find(name)==names.end() ) tqFatal(TQString("Illegal name %1 for %2 element").arg(name).arg(tag)); } } TQDomDocument XmlToData::parseFile(const TQString &filename) const { - qDebug("Parsing XML file \"%s\"...", filename.latin1()); + tqDebug("Parsing XML file \"%s\"...", filename.latin1()); TQFile file(filename); - if ( !file.open(IO_ReadOnly) ) qFatal("Cannot open file!"); + if ( !file.open(IO_ReadOnly) ) tqFatal("Cannot open file!"); TQDomDocument doc; TQString error; int errorLine, errorColumn; if ( !doc.setContent(&file, false, &error, &errorLine, &errorColumn) ) - qFatal(TQString("Error parsing XML file (%1 at line %2, column %3)").arg(error).arg(errorLine).arg(errorColumn)); + tqFatal(TQString("Error parsing XML file (%1 at line %2, column %3)").arg(error).arg(errorLine).arg(errorColumn)); return doc; } void XmlToData::warning(const TQString &message) const { - if ( currentDevice().isEmpty() ) ::qWarning("Warning: %s", message.latin1()); - else ::qWarning("Warning [%s]: %s", currentDevice().latin1(), message.latin1()); + if ( currentDevice().isEmpty() ) ::tqWarning("Warning: %s", message.latin1()); + else ::tqWarning("Warning [%s]: %s", currentDevice().latin1(), message.latin1()); } -void XmlToData::qFatal(const TQString &message) const +void XmlToData::tqFatal(const TQString &message) const { - if ( currentDevice().isEmpty() ) ::qFatal("Fatal: %s", message.latin1()); - else ::qFatal("Fatal [%s]: %s", currentDevice().latin1(), message.latin1()); + if ( currentDevice().isEmpty() ) ::tqFatal("Fatal: %s", message.latin1()); + else ::tqFatal("Fatal [%s]: %s", currentDevice().latin1(), message.latin1()); } void XmlToData::process() { parse(); - qDebug("Parsing XML successful."); + tqDebug("Parsing XML successful."); output(); - qDebug("Output written."); + tqDebug("Output written."); } |