diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kturtle/src/treenode.h | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip |
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kturtle/src/treenode.h')
-rw-r--r-- | kturtle/src/treenode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kturtle/src/treenode.h b/kturtle/src/treenode.h index f43260bf..95b15bd8 100644 --- a/kturtle/src/treenode.h +++ b/kturtle/src/treenode.h @@ -213,14 +213,14 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ { public: TreeNode(); // used for creation of the first node called 'tree', in the contructor of the parser - TreeNode( TreeNode* ); // give parent + TreeNode( TreeNode* ); // give tqparent TreeNode( Token, NodeType = Unknown, TQString = TQString() ); virtual ~TreeNode(); void init(); void appendChild(TreeNode*); - void appendSibling(TreeNode*); // works only if it has parent set! + void appendSibling(TreeNode*); // works only if it has tqparent set! TreeNode* firstChild(); TreeNode* secondChild(); @@ -232,8 +232,8 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ TreeNode* nextSibling(); TreeNode* prevSibling(); - void setParent(TreeNode* p) { parent = p; } - TreeNode* getParent() const { return parent; } + void setParent(TreeNode* p) { tqparent = p; } + TreeNode* getParent() const { return tqparent; } void setToken(Token t) { fTok = t; } Token& getToken() { return fTok; } @@ -254,7 +254,7 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ uint getCol() const { return fTok.start.col; } bool hasChildren() const { return size() != 0; } - TreeNode::iterator lookup(); // gives location in parent list as iterator (used by prevSibling and nextSibling) + TreeNode::iterator lookup(); // gives location in tqparent list as iterator (used by prevSibling and nextSibling) TreeNode& operator=(const TreeNode&); @@ -270,7 +270,7 @@ class TreeNode : public list<TreeNode*> /*, public Value <-- maybe oneday */ protected: - TreeNode *parent; + TreeNode *tqparent; }; #endif // _TREENODE_H_ |