diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /akregator/src/tagnodelist.cpp | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/tagnodelist.cpp')
-rw-r--r-- | akregator/src/tagnodelist.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/akregator/src/tagnodelist.cpp b/akregator/src/tagnodelist.cpp index c53e5be3b..f1a98b62e 100644 --- a/akregator/src/tagnodelist.cpp +++ b/akregator/src/tagnodelist.cpp @@ -92,7 +92,7 @@ bool TagNodeList::insert(TagNode* tagNode) { tagNode->setId(KApplication::random()); TQString id = tagNode->tag().id(); - if (!containsTagId(id)) + if (!tqcontainsTagId(id)) { rootNode()->appendChild(tagNode); // TODO: maintain sorting d->tagIdToNodeMap[id] = tagNode; @@ -105,7 +105,7 @@ bool TagNodeList::insert(TagNode* tagNode) bool TagNodeList::remove(TagNode* tagNode) { TQString id = tagNode->tag().id(); - if (containsTagId(id)) + if (tqcontainsTagId(id)) { rootNode()->removeChild(tagNode); d->tagIdToNodeMap.remove(id); @@ -120,7 +120,7 @@ void TagNodeList::slotNodeDestroyed(TreeNode* node) TagNode* tagNode = dynamic_cast<TagNode*>(node); TQString id = tagNode ? tagNode->tag().id() : TQString::null; - if (tagNode != 0 && containsTagId(id)) + if (tagNode != 0 && tqcontainsTagId(id)) { rootNode()->removeChild(tagNode); d->tagIdToNodeMap.remove(id); @@ -135,7 +135,7 @@ void TagNodeList::slotNodeAdded(TreeNode* node) TagNode* tagNode = dynamic_cast<TagNode*>(node); TQString id = tagNode ? tagNode->tag().id() : TQString::null; - if (tagNode != 0L && !containsTagId(id)) + if (tagNode != 0L && !tqcontainsTagId(id)) { d->tagIdToNodeMap[id] = tagNode; emit signalTagNodeAdded(tagNode); @@ -149,16 +149,16 @@ void TagNodeList::slotNodeRemoved(Folder* parent, TreeNode* node) TagNode* tagNode = dynamic_cast<TagNode*>(node); TQString id = tagNode ? tagNode->tag().id() : TQString::null; - if (parent == rootNode() && tagNode != 0L && containsTagId(id)) + if (parent == rootNode() && tagNode != 0L && tqcontainsTagId(id)) { d->tagIdToNodeMap.remove(id); emit signalTagNodeRemoved(tagNode); } } -bool TagNodeList::containsTagId(const TQString& tagId) +bool TagNodeList::tqcontainsTagId(const TQString& tagId) { - return d->tagIdToNodeMap.contains(tagId); + return d->tagIdToNodeMap.tqcontains(tagId); } TQValueList<TagNode*> TagNodeList::toList() const @@ -178,7 +178,7 @@ TQDomDocument TagNodeList::toXML() const void TagNodeList::slotTagAdded(const Tag& tag) { - if (!containsTagId(tag.id())) + if (!tqcontainsTagId(tag.id())) { insert(new TagNode(tag, d->feedList->rootNode())); } @@ -186,14 +186,14 @@ void TagNodeList::slotTagAdded(const Tag& tag) void TagNodeList::slotTagUpdated(const Tag& tag) { - if (containsTagId(tag.id())) + if (tqcontainsTagId(tag.id())) { d->tagIdToNodeMap[tag.id()]->tagChanged(); } } void TagNodeList::slotTagRemoved(const Tag& tag) { - if (containsTagId(tag.id())) + if (tqcontainsTagId(tag.id())) { delete d->tagIdToNodeMap[tag.id()]; d->tagIdToNodeMap[tag.id()] = 0; |