diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/xml_to_data/xml_to_data.h | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-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/xml_to_data/xml_to_data.h')
-rw-r--r-- | src/xml_to_data/xml_to_data.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/xml_to_data/xml_to_data.h b/src/xml_to_data/xml_to_data.h index bd7e166..5ba4290 100644 --- a/src/xml_to_data/xml_to_data.h +++ b/src/xml_to_data/xml_to_data.h @@ -10,12 +10,8 @@ #define XML_TO_DATA_H #include "common/global/global.h" -#if QT_VERSION<0x040000 -# include <qdom.h> -#else -# include <QtXml/QDomDocument> -#endif -#include <qstringlist.h> +# include <tqdom.h> +#include <tqstringlist.h> class XmlToData { @@ -27,13 +23,13 @@ public: protected: virtual void parse() = 0; virtual void output() = 0; - virtual QString currentDevice() const = 0; - virtual void warning(const QString &message) const; - virtual void qFatal(const QString &message) const; - QDomElement findUniqueElement(QDomElement parent, const QString &nodeName, - const QString &attribute, const QString &value) const; - void checkTagNames(QDomElement element, const QString &tag, const QStringList &names) const; - QDomDocument parseFile(const QString &filename) const; + virtual TQString currentDevice() const = 0; + virtual void warning(const TQString &message) const; + virtual void qFatal(const TQString &message) const; + TQDomElement findUniqueElement(TQDomElement tqparent, const TQString &nodeName, + const TQString &attribute, const TQString &value) const; + void checkTagNames(TQDomElement element, const TQString &tag, const TQStringList &names) const; + TQDomDocument parseFile(const TQString &filename) const; }; #define XML_MAIN(_type) \ |