From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- akregator/src/tagnodelist.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'akregator/src/tagnodelist.cpp') diff --git a/akregator/src/tagnodelist.cpp b/akregator/src/tagnodelist.cpp index 5a2822bbb..c53e5be3b 100644 --- a/akregator/src/tagnodelist.cpp +++ b/akregator/src/tagnodelist.cpp @@ -30,10 +30,10 @@ #include "folder.h" #include "tagfolder.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -45,7 +45,7 @@ class TagNodeList::TagNodeListPrivate public: FeedList* feedList; TagSet* tagSet; - QMap tagIdToNodeMap; + TQMap tagIdToNodeMap; }; FeedList* TagNodeList::feedList() const @@ -58,14 +58,14 @@ TagNodeList::TagNodeList(FeedList* feedList, TagSet* tagSet) : NodeList(), d(ne d->feedList = feedList; d->tagSet = tagSet; - connect(d->tagSet, SIGNAL(signalTagAdded(const Tag&)), this, SLOT(slotTagAdded(const Tag&))); - connect(d->tagSet, SIGNAL(signalTagRemoved(const Tag&)), this, SLOT(slotTagRemoved(const Tag&))); - connect(d->tagSet, SIGNAL(signalTagUpdated(const Tag&)), this, SLOT(slotTagUpdated(const Tag&))); + connect(d->tagSet, TQT_SIGNAL(signalTagAdded(const Tag&)), this, TQT_SLOT(slotTagAdded(const Tag&))); + connect(d->tagSet, TQT_SIGNAL(signalTagRemoved(const Tag&)), this, TQT_SLOT(slotTagRemoved(const Tag&))); + connect(d->tagSet, TQT_SIGNAL(signalTagUpdated(const Tag&)), this, TQT_SLOT(slotTagUpdated(const Tag&))); setRootNode(new TagFolder(i18n("My Tags"))); - QValueList list = tagSet->toMap().values(); - for (QValueList::ConstIterator it = list.begin(); it != list.end(); ++it) + TQValueList list = tagSet->toMap().values(); + for (TQValueList::ConstIterator it = list.begin(); it != list.end(); ++it) { insert(new TagNode(*it, d->feedList->rootNode())); } @@ -83,7 +83,7 @@ TagFolder* TagNodeList::rootNode() const return static_cast(NodeList::rootNode()); } -TagNode* TagNodeList::findByTagID(const QString& tagID) +TagNode* TagNodeList::findByTagID(const TQString& tagID) { return d->tagIdToNodeMap[tagID]; } @@ -91,7 +91,7 @@ TagNode* TagNodeList::findByTagID(const QString& tagID) bool TagNodeList::insert(TagNode* tagNode) { tagNode->setId(KApplication::random()); - QString id = tagNode->tag().id(); + TQString id = tagNode->tag().id(); if (!containsTagId(id)) { rootNode()->appendChild(tagNode); // TODO: maintain sorting @@ -104,7 +104,7 @@ bool TagNodeList::insert(TagNode* tagNode) bool TagNodeList::remove(TagNode* tagNode) { - QString id = tagNode->tag().id(); + TQString id = tagNode->tag().id(); if (containsTagId(id)) { rootNode()->removeChild(tagNode); @@ -118,7 +118,7 @@ bool TagNodeList::remove(TagNode* tagNode) void TagNodeList::slotNodeDestroyed(TreeNode* node) { TagNode* tagNode = dynamic_cast(node); - QString id = tagNode ? tagNode->tag().id() : QString::null; + TQString id = tagNode ? tagNode->tag().id() : TQString::null; if (tagNode != 0 && containsTagId(id)) { @@ -133,7 +133,7 @@ void TagNodeList::slotNodeAdded(TreeNode* node) NodeList::slotNodeAdded(node); TagNode* tagNode = dynamic_cast(node); - QString id = tagNode ? tagNode->tag().id() : QString::null; + TQString id = tagNode ? tagNode->tag().id() : TQString::null; if (tagNode != 0L && !containsTagId(id)) { @@ -147,7 +147,7 @@ void TagNodeList::slotNodeRemoved(Folder* parent, TreeNode* node) NodeList::slotNodeRemoved(parent, node); TagNode* tagNode = dynamic_cast(node); - QString id = tagNode ? tagNode->tag().id() : QString::null; + TQString id = tagNode ? tagNode->tag().id() : TQString::null; if (parent == rootNode() && tagNode != 0L && containsTagId(id)) { @@ -156,24 +156,24 @@ void TagNodeList::slotNodeRemoved(Folder* parent, TreeNode* node) } } -bool TagNodeList::containsTagId(const QString& tagId) +bool TagNodeList::containsTagId(const TQString& tagId) { return d->tagIdToNodeMap.contains(tagId); } -QValueList TagNodeList::toList() const +TQValueList TagNodeList::toList() const { return d->tagIdToNodeMap.values(); } -bool TagNodeList::readFromXML(const QDomDocument& doc) +bool TagNodeList::readFromXML(const TQDomDocument& doc) { return false; // TODO } -QDomDocument TagNodeList::toXML() const +TQDomDocument TagNodeList::toXML() const { - return QDomDocument(); + return TQDomDocument(); } void TagNodeList::slotTagAdded(const Tag& tag) -- cgit v1.2.1