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/tagnodelist.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/tagnodelist.cpp')
-rw-r--r-- | akregator/src/tagnodelist.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
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<TagNode*>(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<TagNode*>(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<TagNode*>(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; |