diff options
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; |