summaryrefslogtreecommitdiffstats
path: root/akregator/src/notificationmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/notificationmanager.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/notificationmanager.cpp')
-rw-r--r--akregator/src/notificationmanager.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/akregator/src/notificationmanager.cpp b/akregator/src/notificationmanager.cpp
index ae1b2c886..b505b2b82 100644
--- a/akregator/src/notificationmanager.cpp
+++ b/akregator/src/notificationmanager.cpp
@@ -27,15 +27,15 @@
#include <kstaticdeleter.h>
#include <kurl.h>
-#include <qlabel.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
#include "feed.h"
#include "notificationmanager.h"
namespace Akregator {
-NotificationManager::NotificationManager() : QObject()
+NotificationManager::NotificationManager() : TQObject()
{
m_intervalsLapsed = 0;
m_checkInterval = 2000;
@@ -52,7 +52,7 @@ NotificationManager::~NotificationManager()
m_self = 0;
}
-void NotificationManager::setWidget(QWidget* widget, KInstance* inst)
+void NotificationManager::setWidget(TQWidget* widget, KInstance* inst)
{
m_widget = widget;
m_instance = inst != NULL ? inst : KGlobal::instance();
@@ -67,11 +67,11 @@ void NotificationManager::slotNotifyArticle(const Article& article)
else if (!m_running)
{
m_running = true;
- QTimer::singleShot(m_checkInterval, this, SLOT(slotIntervalCheck()));
+ TQTimer::singleShot(m_checkInterval, this, TQT_SLOT(slotIntervalCheck()));
}
}
-void NotificationManager::slotNotifyFeeds(const QStringList& feeds)
+void NotificationManager::slotNotifyFeeds(const TQStringList& feeds)
{
if (feeds.count() == 1)
{
@@ -80,8 +80,8 @@ void NotificationManager::slotNotifyFeeds(const QStringList& feeds)
}
else if (feeds.count() > 1)
{
- QString message;
- for (QStringList::ConstIterator it = feeds.begin(); it != feeds.end(); ++it)
+ TQString message;
+ for (TQStringList::ConstIterator it = feeds.begin(); it != feeds.end(); ++it)
message += *it + "\n";
KNotifyClient::Instance inst(m_instance);
KNotifyClient::event(m_widget->winId(), "feed_added", i18n("Feeds added:\n %1").arg(message));
@@ -90,16 +90,16 @@ void NotificationManager::slotNotifyFeeds(const QStringList& feeds)
void NotificationManager::doNotify()
{
- QString message = "<html><body>";
- QString feedTitle;
- QValueList<Article>::ConstIterator it = m_articles.begin();
- QValueList<Article>::ConstIterator en = m_articles.end();
+ TQString message = "<html><body>";
+ TQString feedTitle;
+ TQValueList<Article>::ConstIterator it = m_articles.begin();
+ TQValueList<Article>::ConstIterator en = m_articles.end();
for (; it != en; ++it)
{
if (feedTitle != (*it).feed()->title())
{
feedTitle = (*it).feed()->title();
- message += QString("<p><b>%1:</b></p>").arg(feedTitle);
+ message += TQString("<p><b>%1:</b></p>").arg(feedTitle);
}
message += (*it).title() + "<br>";
}
@@ -123,7 +123,7 @@ void NotificationManager::slotIntervalCheck()
else
{
m_addedInLastInterval = false;
- QTimer::singleShot(m_checkInterval, this, SLOT(slotIntervalCheck()));
+ TQTimer::singleShot(m_checkInterval, this, TQT_SLOT(slotIntervalCheck()));
}
}