diff options
Diffstat (limited to 'akregator/src/progressmanager.cpp')
-rw-r--r-- | akregator/src/progressmanager.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/akregator/src/progressmanager.cpp b/akregator/src/progressmanager.cpp index 201cf5b6d..6146ddd86 100644 --- a/akregator/src/progressmanager.cpp +++ b/akregator/src/progressmanager.cpp @@ -22,8 +22,8 @@ without including the source code for Qt in the source distribution. */ -#include <qmap.h> -#include <qstylesheet.h> +#include <tqmap.h> +#include <tqstylesheet.h> #include <klocale.h> #include <kstaticdeleter.h> @@ -44,7 +44,7 @@ class ProgressManager::ProgressManagerPrivate { public: FeedList* feedList; - QMap<Feed*, ProgressItemHandler*> handlers; + TQMap<Feed*, ProgressItemHandler*> handlers; }; @@ -76,24 +76,24 @@ void ProgressManager::setFeedList(FeedList* feedList) if (d->feedList != 0) { - for (QMap<Feed*, ProgressItemHandler*>::ConstIterator it = d->handlers.begin(); it != d->handlers.end(); ++it) + for (TQMap<Feed*, ProgressItemHandler*>::ConstIterator it = d->handlers.begin(); it != d->handlers.end(); ++it) delete *it; d->handlers.clear(); - disconnect(d->feedList, SIGNAL(signalNodeAdded(TreeNode*)), this, SLOT(slotNodeAdded(TreeNode*))); - disconnect(d->feedList, SIGNAL(signalNodeRemoved(TreeNode*)), this, SLOT(slotNodeRemoved(TreeNode*))); + disconnect(d->feedList, TQT_SIGNAL(signalNodeAdded(TreeNode*)), this, TQT_SLOT(slotNodeAdded(TreeNode*))); + disconnect(d->feedList, TQT_SIGNAL(signalNodeRemoved(TreeNode*)), this, TQT_SLOT(slotNodeRemoved(TreeNode*))); } d->feedList = feedList; if (feedList != 0) { - QValueList<TreeNode*> list = feedList->asFlatList(); + TQValueList<TreeNode*> list = feedList->asFlatList(); - for (QValueList<TreeNode*>::ConstIterator it = list.begin(); it != list.end(); ++it) + for (TQValueList<TreeNode*>::ConstIterator it = list.begin(); it != list.end(); ++it) slotNodeAdded(*it); - connect(feedList, SIGNAL(signalNodeAdded(TreeNode*)), this, SLOT(slotNodeAdded(TreeNode*))); - connect(feedList, SIGNAL(signalNodeRemoved(TreeNode*)), this, SLOT(slotNodeRemoved(TreeNode*))); + connect(feedList, TQT_SIGNAL(signalNodeAdded(TreeNode*)), this, TQT_SLOT(slotNodeAdded(TreeNode*))); + connect(feedList, TQT_SIGNAL(signalNodeRemoved(TreeNode*)), this, TQT_SLOT(slotNodeRemoved(TreeNode*))); } } @@ -104,7 +104,7 @@ void ProgressManager::slotNodeAdded(TreeNode* node) { if (!d->handlers.contains(feed)) d->handlers[feed] = new ProgressItemHandler(feed); - connect(feed, SIGNAL(signalDestroyed(TreeNode*)), this, SLOT(slotNodeDestroyed(TreeNode*))); + connect(feed, TQT_SIGNAL(signalDestroyed(TreeNode*)), this, TQT_SLOT(slotNodeDestroyed(TreeNode*))); } } @@ -113,7 +113,7 @@ void ProgressManager::slotNodeRemoved(TreeNode* node) Feed* feed = dynamic_cast<Feed*>(node); if (feed) { - disconnect(feed, SIGNAL(signalDestroyed(TreeNode*)), this, SLOT(slotNodeDestroyed(TreeNode*))); + disconnect(feed, TQT_SIGNAL(signalDestroyed(TreeNode*)), this, TQT_SLOT(slotNodeDestroyed(TreeNode*))); delete d->handlers[feed]; d->handlers.remove(feed); } @@ -142,10 +142,10 @@ ProgressItemHandler::ProgressItemHandler(Feed* feed) : d(new ProgressItemHandler d->feed = feed; d->progressItem = 0; - connect(feed, SIGNAL(fetchStarted(Feed*)), this, SLOT(slotFetchStarted())); - connect(feed, SIGNAL(fetched(Feed*)), this, SLOT(slotFetchCompleted())); - connect(feed, SIGNAL(fetchError(Feed*)), this, SLOT(slotFetchError())); - connect(feed, SIGNAL(fetchAborted(Feed*)), this, SLOT(slotFetchAborted())); + connect(feed, TQT_SIGNAL(fetchStarted(Feed*)), this, TQT_SLOT(slotFetchStarted())); + connect(feed, TQT_SIGNAL(fetched(Feed*)), this, TQT_SLOT(slotFetchCompleted())); + connect(feed, TQT_SIGNAL(fetchError(Feed*)), this, TQT_SLOT(slotFetchError())); + connect(feed, TQT_SIGNAL(fetchAborted(Feed*)), this, TQT_SLOT(slotFetchAborted())); } ProgressItemHandler::~ProgressItemHandler() @@ -168,9 +168,9 @@ void ProgressItemHandler::slotFetchStarted() d->progressItem = 0; } - d->progressItem = KPIM::ProgressManager::createProgressItem(KPIM::ProgressManager::getUniqueID(), QStyleSheet::escape( d->feed->title() ), QString::null, true); + d->progressItem = KPIM::ProgressManager::createProgressItem(KPIM::ProgressManager::getUniqueID(), TQStyleSheet::escape( d->feed->title() ), TQString::null, true); - connect(d->progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), d->feed, SLOT(slotAbortFetch())); + connect(d->progressItem, TQT_SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), d->feed, TQT_SLOT(slotAbortFetch())); } |