diff options
Diffstat (limited to 'akregator/src/treenode.cpp')
-rw-r--r-- | akregator/src/treenode.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/akregator/src/treenode.cpp b/akregator/src/treenode.cpp index 5aa316865..58e4ae8ea 100644 --- a/akregator/src/treenode.cpp +++ b/akregator/src/treenode.cpp @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include "folder.h" @@ -40,7 +40,7 @@ class TreeNode::TreeNodePrivate bool nodeChangeOccurred; bool articleChangeOccurred; TQString title; - Folder* parent; + Folder* tqparent; uint id; bool signalDestroyedEmitted; }; @@ -52,7 +52,7 @@ TreeNode::TreeNode() d->nodeChangeOccurred = false; d->articleChangeOccurred = false; d->title = ""; - d->parent = 0; + d->tqparent = 0; d->id = 0; d->signalDestroyedEmitted = false; @@ -91,35 +91,35 @@ void TreeNode::setTitle(const TQString& title) TreeNode* TreeNode::nextSibling() const { - if (!d->parent) + if (!d->tqparent) return 0; - TQValueList<TreeNode*> children = d->parent->children(); + TQValueList<TreeNode*> tqchildren = d->tqparent->tqchildren(); TreeNode* me = (TreeNode*)this; - int idx = children.findIndex(me); + int idx = tqchildren.findIndex(me); - return idx+1 < children.size() ? *(children.at(idx+1)) : 0L; + return idx+1 < tqchildren.size() ? *(tqchildren.at(idx+1)) : 0L; } TreeNode* TreeNode::prevSibling() const { - if (!d->parent) + if (!d->tqparent) return 0; - TQValueList<TreeNode*> children = d->parent->children(); + TQValueList<TreeNode*> tqchildren = d->tqparent->tqchildren(); TreeNode* me = (TreeNode*)this; - int idx = children.findIndex(me); - return idx > 0 ? *(d->parent->children().at(idx-1)) : 0L; + int idx = tqchildren.findIndex(me); + return idx > 0 ? *(d->tqparent->tqchildren().at(idx-1)) : 0L; } -Folder* TreeNode::parent() const +Folder* TreeNode::tqparent() const { - return d->parent; + return d->tqparent; } -void TreeNode::setParent(Folder* parent) +void TreeNode::setParent(Folder* tqparent) { - d->parent = parent; + d->tqparent = tqparent; } void TreeNode::setNotificationMode(bool doNotify, bool notifyOccurredChanges) |