From 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 00:15:53 +0000 Subject: TQt4 port piklab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/progs/pickit2/xml/xml_pickit2_parser.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/progs/pickit2/xml') diff --git a/src/progs/pickit2/xml/xml_pickit2_parser.cpp b/src/progs/pickit2/xml/xml_pickit2_parser.cpp index ffc82f7..686e4b2e 100644 --- a/src/progs/pickit2/xml/xml_pickit2_parser.cpp +++ b/src/progs/pickit2/xml/xml_pickit2_parser.cpp @@ -18,14 +18,14 @@ public: XmlToData() : Programmer::XmlToData("pickit2", "Pickit2") {} private: - virtual void parseData(QDomElement element, Data &data); - virtual void outputData(const Data &data, QTextStream &s) const; - virtual void outputFunctions(QTextStream &s) const; + virtual void parseData(TQDomElement element, Data &data); + virtual void outputData(const Data &data, TQTextStream &s) const; + virtual void outputFunctions(TQTextStream &s) const; }; -void Pickit2::XmlToData::parseData(QDomElement element, Data &data) +void Pickit2::XmlToData::parseData(TQDomElement element, Data &data) { - QString s = element.attribute("entry"); + TQString s = element.attribute("entry"); if ( s.length()!=1 || (s[0]!='O' && s[0]!='P') ) qFatal("Invalid or missing entry mode"); data.entryMode = s[0].latin1(); s = element.attribute("pmode"); @@ -47,13 +47,13 @@ void Pickit2::XmlToData::parseData(QDomElement element, Data &data) else qFatal("Invalid regen value"); } -void Pickit2::XmlToData::outputData(const Data &data, QTextStream &s) const +void Pickit2::XmlToData::outputData(const Data &data, TQTextStream &s) const { s << "'" << data.entryMode << "', '" << data.progMode; s << "', " << data.progWidth << ", " << (data.regenerateOsccal ? "true" : "false"); } -void Pickit2::XmlToData::outputFunctions(QTextStream &s) const +void Pickit2::XmlToData::outputFunctions(TQTextStream &s) const { Programmer::XmlToData::outputFunctions(s); s << "::Programmer::DeviceSpecific *Group::createDeviceSpecific(::Programmer::Base &base) const" << endl; @@ -61,7 +61,7 @@ void Pickit2::XmlToData::outputFunctions(QTextStream &s) const s << " uint i = family(static_cast< ::Pickit2::Base &>(base).device()->name());" << endl; s << " switch(i) {" << endl; for (uint i=0; i