diff options
Diffstat (limited to 'akregator/src/treenode.cpp')
-rw-r--r-- | akregator/src/treenode.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/akregator/src/treenode.cpp b/akregator/src/treenode.cpp index 58e4ae8ea..9cc716b45 100644 --- a/akregator/src/treenode.cpp +++ b/akregator/src/treenode.cpp @@ -40,7 +40,7 @@ class TreeNode::TreeNodePrivate bool nodeChangeOccurred; bool articleChangeOccurred; TQString title; - Folder* tqparent; + Folder* parent; uint id; bool signalDestroyedEmitted; }; @@ -52,7 +52,7 @@ TreeNode::TreeNode() d->nodeChangeOccurred = false; d->articleChangeOccurred = false; d->title = ""; - d->tqparent = 0; + d->parent = 0; d->id = 0; d->signalDestroyedEmitted = false; @@ -91,9 +91,9 @@ void TreeNode::setTitle(const TQString& title) TreeNode* TreeNode::nextSibling() const { - if (!d->tqparent) + if (!d->parent) return 0; - TQValueList<TreeNode*> tqchildren = d->tqparent->tqchildren(); + TQValueList<TreeNode*> tqchildren = d->parent->tqchildren(); TreeNode* me = (TreeNode*)this; int idx = tqchildren.findIndex(me); @@ -103,23 +103,23 @@ TreeNode* TreeNode::nextSibling() const TreeNode* TreeNode::prevSibling() const { - if (!d->tqparent) + if (!d->parent) return 0; - TQValueList<TreeNode*> tqchildren = d->tqparent->tqchildren(); + TQValueList<TreeNode*> tqchildren = d->parent->tqchildren(); TreeNode* me = (TreeNode*)this; int idx = tqchildren.findIndex(me); - return idx > 0 ? *(d->tqparent->tqchildren().at(idx-1)) : 0L; + return idx > 0 ? *(d->parent->tqchildren().at(idx-1)) : 0L; } -Folder* TreeNode::tqparent() const +Folder* TreeNode::parent() const { - return d->tqparent; + return d->parent; } -void TreeNode::setParent(Folder* tqparent) +void TreeNode::setParent(Folder* parent) { - d->tqparent = tqparent; + d->parent = parent; } void TreeNode::setNotificationMode(bool doNotify, bool notifyOccurredChanges) |