diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /umbrello/umbrello/petalnode.h | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'umbrello/umbrello/petalnode.h')
-rw-r--r-- | umbrello/umbrello/petalnode.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/umbrello/umbrello/petalnode.h b/umbrello/umbrello/petalnode.h index 705de417..c9f52bde 100644 --- a/umbrello/umbrello/petalnode.h +++ b/umbrello/umbrello/petalnode.h @@ -12,10 +12,10 @@ #ifndef PETALNODE__H #define PETALNODE__H -#include <qstring.h> -#include <qpair.h> -#include <qvaluelist.h> -#include <qstringlist.h> +#include <tqstring.h> +#include <tqpair.h> +#include <tqvaluelist.h> +#include <tqstringlist.h> /** * Rose petal node - parse tree for model import @@ -46,14 +46,14 @@ public: * (Perhaps this should be a union but that is ugly.) */ struct StringOrNode { - QString string; + TQString string; PetalNode *node; StringOrNode() { node = 0; } virtual ~StringOrNode() { } bool isEmpty() { return (string.isEmpty() && node == 0); } }; - typedef QPair<QString, StringOrNode> NameValue; - typedef QValueList<NameValue> NameValueList; + typedef QPair<TQString, StringOrNode> NameValue; + typedef TQValueList<NameValue> NameValueList; enum NodeType { nt_object, nt_list }; @@ -62,12 +62,12 @@ public: // getters NodeType type() const; - QStringList initialArgs() const; // name and other initial args - QString name() const; // convenience function: equal to initialArgs().first() + TQStringList initialArgs() const; // name and other initial args + TQString name() const; // convenience function: equal to initialArgs().first() NameValueList attributes() const; // setters //void setType(NodeType nt); see constructor - void setInitialArgs(const QStringList& args); + void setInitialArgs(const TQStringList& args); void setAttributes(NameValueList vl); // utilities /** @@ -75,10 +75,10 @@ public: * @return The value of the attribute. StringOrNode::isEmpty() returns true * if the name could not be found. */ - StringOrNode findAttribute(const QString& name) const; + StringOrNode findAttribute(const TQString& name) const; private: NodeType m_type; - QStringList m_initialArgs; + TQStringList m_initialArgs; NameValueList m_attributes; }; |