From a374efce3a207b39514be3c52264091400ce297e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:44:41 +0000 Subject: 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 --- kturtle/src/treenode.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kturtle/src/treenode.h') 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 /*, 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 /*, 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 /*, 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 /*, public Value <-- maybe oneday */ protected: - TreeNode *parent; + TreeNode *tqparent; }; #endif // _TREENODE_H_ -- cgit v1.2.1