From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- akregator/src/tagnodelist.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'akregator/src/tagnodelist.cpp') diff --git a/akregator/src/tagnodelist.cpp b/akregator/src/tagnodelist.cpp index f1a98b62e..ba531d038 100644 --- a/akregator/src/tagnodelist.cpp +++ b/akregator/src/tagnodelist.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" @@ -92,7 +92,7 @@ bool TagNodeList::insert(TagNode* tagNode) { tagNode->setId(KApplication::random()); TQString id = tagNode->tag().id(); - if (!tqcontainsTagId(id)) + if (!containsTagId(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 (tqcontainsTagId(id)) + if (containsTagId(id)) { rootNode()->removeChild(tagNode); d->tagIdToNodeMap.remove(id); @@ -118,9 +118,9 @@ bool TagNodeList::remove(TagNode* tagNode) void TagNodeList::slotNodeDestroyed(TreeNode* node) { TagNode* tagNode = dynamic_cast(node); - TQString id = tagNode ? tagNode->tag().id() : TQString::null; + TQString id = tagNode ? tagNode->tag().id() : TQString(); - if (tagNode != 0 && tqcontainsTagId(id)) + if (tagNode != 0 && containsTagId(id)) { rootNode()->removeChild(tagNode); d->tagIdToNodeMap.remove(id); @@ -133,30 +133,30 @@ void TagNodeList::slotNodeAdded(TreeNode* node) NodeList::slotNodeAdded(node); TagNode* tagNode = dynamic_cast(node); - TQString id = tagNode ? tagNode->tag().id() : TQString::null; + TQString id = tagNode ? tagNode->tag().id() : TQString(); - if (tagNode != 0L && !tqcontainsTagId(id)) + if (tagNode != 0L && !containsTagId(id)) { d->tagIdToNodeMap[id] = tagNode; emit signalTagNodeAdded(tagNode); } } -void TagNodeList::slotNodeRemoved(Folder* parent, TreeNode* node) +void TagNodeList::slotNodeRemoved(Folder* tqparent, TreeNode* node) { - NodeList::slotNodeRemoved(parent, node); + NodeList::slotNodeRemoved(tqparent, node); TagNode* tagNode = dynamic_cast(node); - TQString id = tagNode ? tagNode->tag().id() : TQString::null; + TQString id = tagNode ? tagNode->tag().id() : TQString(); - if (parent == rootNode() && tagNode != 0L && tqcontainsTagId(id)) + if (tqparent == rootNode() && tagNode != 0L && containsTagId(id)) { d->tagIdToNodeMap.remove(id); emit signalTagNodeRemoved(tagNode); } } -bool TagNodeList::tqcontainsTagId(const TQString& tagId) +bool TagNodeList::containsTagId(const TQString& tagId) { return d->tagIdToNodeMap.tqcontains(tagId); } @@ -178,7 +178,7 @@ TQDomDocument TagNodeList::toXML() const void TagNodeList::slotTagAdded(const Tag& tag) { - if (!tqcontainsTagId(tag.id())) + if (!containsTagId(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 (tqcontainsTagId(tag.id())) + if (containsTagId(tag.id())) { d->tagIdToNodeMap[tag.id()]->tagChanged(); } } void TagNodeList::slotTagRemoved(const Tag& tag) { - if (tqcontainsTagId(tag.id())) + if (containsTagId(tag.id())) { delete d->tagIdToNodeMap[tag.id()]; d->tagIdToNodeMap[tag.id()] = 0; -- cgit v1.2.1