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/feedlist.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/feedlist.cpp')
-rw-r--r-- | akregator/src/feedlist.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/akregator/src/feedlist.cpp b/akregator/src/feedlist.cpp index 1195b5ddd..50496d8bc 100644 --- a/akregator/src/feedlist.cpp +++ b/akregator/src/feedlist.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 "feedlist.h" @@ -80,8 +80,8 @@ class FeedList::RemoveNodeVisitor : public TreeNodeVisitor FeedList* m_list; }; -FeedList::FeedList(TQObject *parent, const char *name) - : NodeList(parent, name), d(new FeedListPrivate) +FeedList::FeedList(TQObject *tqparent, const char *name) + : NodeList(tqparent, name), d(new FeedListPrivate) { d->addNodeVisitor = new AddNodeVisitor(this); d->removeNodeVisitor = new RemoveNodeVisitor(this); @@ -104,7 +104,7 @@ void FeedList::removeNode(TreeNode* node) d->removeNodeVisitor->visit(node); } -void FeedList::parseChildNodes(TQDomNode &node, Folder* parent) +void FeedList::parseChildNodes(TQDomNode &node, Folder* tqparent) { TQDomElement e = node.toElement(); // try to convert the node to an element. @@ -119,13 +119,13 @@ void FeedList::parseChildNodes(TQDomNode &node, Folder* parent) { if (!d->urlMap[feed->xmlUrl()].tqcontains(feed)) d->urlMap[feed->xmlUrl()].append(feed); - parent->appendChild(feed); + tqparent->appendChild(feed); } } else { Folder* fg = Folder::fromOPML(e); - parent->appendChild(fg); + tqparent->appendChild(fg); if (e.hasChildNodes()) { @@ -214,21 +214,21 @@ Article FeedList::findArticle(const TQString& feedURL, const TQString& guid) con return feed ? feed->findArticle(guid) : Article(); } -void FeedList::append(FeedList* list, Folder* parent, TreeNode* after) +void FeedList::append(FeedList* list, Folder* tqparent, TreeNode* after) { if ( list == this ) return; - if ( !flatList()->tqcontains(parent) ) - parent = rootNode(); + if ( !flatList()->tqcontains(tqparent) ) + tqparent = rootNode(); - TQValueList<TreeNode*> children = list->rootNode()->children(); + TQValueList<TreeNode*> tqchildren = list->rootNode()->tqchildren(); - TQValueList<TreeNode*>::ConstIterator end( children.end() ); - for (TQValueList<TreeNode*>::ConstIterator it = children.begin(); it != end; ++it) + TQValueList<TreeNode*>::ConstIterator end( tqchildren.end() ); + for (TQValueList<TreeNode*>::ConstIterator it = tqchildren.begin(); it != end; ++it) { list->rootNode()->removeChild(*it); - parent->insertChild(*it, after); + tqparent->insertChild(*it, after); after = *it; } } @@ -254,11 +254,11 @@ TQDomDocument FeedList::toXML() const TQDomElement body = doc.createElement( "body" ); root.appendChild( body ); - TQValueList<TreeNode*> children = rootNode()->children(); + TQValueList<TreeNode*> tqchildren = rootNode()->tqchildren(); - TQValueList<TreeNode*>::ConstIterator end( children.end() ); + TQValueList<TreeNode*>::ConstIterator end( tqchildren.end() ); - for (TQValueList<TreeNode*>::ConstIterator it = children.begin(); it != end; ++it) + for (TQValueList<TreeNode*>::ConstIterator it = tqchildren.begin(); it != end; ++it) body.appendChild( (*it)->toOPML(body, doc) ); return doc; |