diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /akregator/src/treenode.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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) |