summaryrefslogtreecommitdiffstats
path: root/src/progs/icd2/xml
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/progs/icd2/xml
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
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
Diffstat (limited to 'src/progs/icd2/xml')
-rw-r--r--src/progs/icd2/xml/xml_icd2_parser.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/progs/icd2/xml/xml_icd2_parser.cpp b/src/progs/icd2/xml/xml_icd2_parser.cpp
index 7ce2ad9..06eed27 100644
--- a/src/progs/icd2/xml/xml_icd2_parser.cpp
+++ b/src/progs/icd2/xml/xml_icd2_parser.cpp
@@ -19,21 +19,21 @@ public:
XmlToData() : Programmer::XmlToData<Data>("icd2", "Icd2") {}
private:
- virtual uint familyIndex(const QString &family) const;
- virtual void parseData(QDomElement element, Data &data);
- virtual void outputData(const Data &data, QTextStream &s) const;
+ virtual uint familyIndex(const TQString &family) const;
+ virtual void parseData(TQDomElement element, Data &data);
+ virtual void outputData(const Data &data, TQTextStream &s) const;
};
-uint Icd2::XmlToData::familyIndex(const QString &family) const
+uint Icd2::XmlToData::familyIndex(const TQString &family) const
{
uint i = 0;
for (; Icd2::FAMILY_DATA[i].efid!=0; i++)
if ( family==Icd2::FAMILY_DATA[i].name ) break;
- if ( Icd2::FAMILY_DATA[i].efid==0 ) qFatal(QString("Family \"%1\" is unknown").arg(family));
+ if ( Icd2::FAMILY_DATA[i].efid==0 ) qFatal(TQString("Family \"%1\" is unknown").tqarg(family));
return i;
}
-void Icd2::XmlToData::parseData(QDomElement element, Data &data)
+void Icd2::XmlToData::parseData(TQDomElement element, Data &data)
{
bool ok;
data.famid = fromHexLabel(element.attribute("famid"), 2, &ok);
@@ -41,7 +41,7 @@ void Icd2::XmlToData::parseData(QDomElement element, Data &data)
data.debugSupport = extractSupport(element.attribute("debug_support_type"));
}
-void Icd2::XmlToData::outputData(const Data &data, QTextStream &s) const
+void Icd2::XmlToData::outputData(const Data &data, TQTextStream &s) const
{
s << toHexLabel(data.famid, 2) << ", ";
s << "::Group::Support::Type(" << data.debugSupport.type() << ")";