summaryrefslogtreecommitdiffstats
path: root/konq-plugins/akregator/konqfeedicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/akregator/konqfeedicon.cpp')
-rw-r--r--konq-plugins/akregator/konqfeedicon.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/konq-plugins/akregator/konqfeedicon.cpp b/konq-plugins/akregator/konqfeedicon.cpp
index 436a4be..ce6f89e 100644
--- a/konq-plugins/akregator/konqfeedicon.cpp
+++ b/konq-plugins/akregator/konqfeedicon.cpp
@@ -41,13 +41,13 @@
#include <kurllabel.h>
#include <kurl.h>
-#include <qcursor.h>
-#include <qobjectlist.h>
-#include <qpixmap.h>
-#include <qstringlist.h>
-#include <qstylesheet.h>
-#include <qtimer.h>
-#include <qtooltip.h>
+#include <tqcursor.h>
+#include <tqobjectlist.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
+#include <tqstylesheet.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
using namespace Akregator;
@@ -55,7 +55,7 @@ typedef KGenericFactory<KonqFeedIcon> KonqFeedIconFactory;
K_EXPORT_COMPONENT_FACTORY(libakregatorkonqfeedicon,
KonqFeedIconFactory("akregatorkonqfeedicon"))
-KonqFeedIcon::KonqFeedIcon(QObject *parent, const char *name, const QStringList &)
+KonqFeedIcon::KonqFeedIcon(TQObject *parent, const char *name, const TQStringList &)
: KParts::Plugin(parent, name), PluginBase(), m_part(0), m_feedIcon(0), m_statusBarEx(0), m_menu(0)
{
KGlobal::locale()->insertCatalogue("akregator_konqplugin");
@@ -63,15 +63,15 @@ KonqFeedIcon::KonqFeedIcon(QObject *parent, const char *name, const QStringList
m_part = dynamic_cast<KHTMLPart*>(parent);
if(!m_part) { kdDebug() << "couldn't get part" << endl; return; }
// FIXME: need to do this because of a bug in khtmlpart, it's fixed now for 3.4 (and prolly backported for 3.3.3?)
- //connect(m_part->view(), SIGNAL(finishedLayout()), this, SLOT(addFeedIcon()));
- QTimer::singleShot(0, this, SLOT(waitPartToLoad()));
+ //connect(m_part->view(), TQT_SIGNAL(finishedLayout()), this, TQT_SLOT(addFeedIcon()));
+ TQTimer::singleShot(0, this, TQT_SLOT(waitPartToLoad()));
}
void KonqFeedIcon::waitPartToLoad()
{
- connect(m_part, SIGNAL(completed()), this, SLOT(addFeedIcon()));
- connect(m_part, SIGNAL(completed(bool)), this, SLOT(addFeedIcon())); // to make pages with metarefresh to work
- connect(m_part, SIGNAL(started(KIO::Job *)), this, SLOT(removeFeedIcon()));
+ connect(m_part, TQT_SIGNAL(completed()), this, TQT_SLOT(addFeedIcon()));
+ connect(m_part, TQT_SIGNAL(completed(bool)), this, TQT_SLOT(addFeedIcon())); // to make pages with metarefresh to work
+ connect(m_part, TQT_SIGNAL(started(KIO::Job *)), this, TQT_SLOT(removeFeedIcon()));
addFeedIcon();
}
@@ -101,7 +101,7 @@ bool KonqFeedIcon::feedFound()
return false;
unsigned int i;
- QString doc = "";
+ TQString doc = "";
for (i = 0; i < linkNodes.length(); i++)
{
@@ -110,7 +110,7 @@ bool KonqFeedIcon::feedFound()
for (unsigned int j = 0; j < node.attributes().length(); j++)
{
doc += node.attributes().item(j).nodeName().string() + "=\"";
- doc += QStyleSheet::escape(node.attributes().item(j).nodeValue().string()).replace("\"", "&quot;");
+ doc += TQStyleSheet::escape(node.attributes().item(j).nodeValue().string()).replace("\"", "&quot;");
doc += "\" ";
}
doc += "/>";
@@ -126,21 +126,21 @@ void KonqFeedIcon::contextMenu()
m_menu = new KPopupMenu(m_part->widget());
if(m_feedList.count() == 1) {
m_menu->insertTitle(m_feedList.first().title());
- m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add Feed to Akregator"), this, SLOT(addFeeds()) );
+ m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add Feed to Akregator"), this, TQT_SLOT(addFeeds()) );
}
else {
m_menu->insertTitle(i18n("Add Feeds to Akregator"));
- connect(m_menu, SIGNAL(activated(int)), this, SLOT(addFeed(int)));
+ connect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addFeed(int)));
int id = 0;
for(FeedDetectorEntryList::Iterator it = m_feedList.begin(); it != m_feedList.end(); ++it) {
m_menu->insertItem(SmallIcon("bookmark_add"), (*it).title(), id);
id++;
}
- //disconnect(m_menu, SIGNAL(activated(int)), this, SLOT(addFeed(int)));
+ //disconnect(m_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addFeed(int)));
m_menu->insertSeparator();
- m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add All Found Feeds to Akregator"), this, SLOT(addFeeds()), 0, 50000 );
+ m_menu->insertItem(SmallIcon("bookmark_add"), i18n("Add All Found Feeds to Akregator"), this, TQT_SLOT(addFeeds()), 0, 50000 );
}
- m_menu->popup(QCursor::pos());
+ m_menu->popup(TQCursor::pos());
}
void KonqFeedIcon::addFeedIcon()
@@ -156,17 +156,17 @@ void KonqFeedIcon::addFeedIcon()
// from khtmlpart's ualabel
m_feedIcon->setFixedHeight(instance()->iconLoader()->currentSize(KIcon::Small));
- m_feedIcon->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
+ m_feedIcon->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
m_feedIcon->setUseCursor(false);
//FIXME hackish
- m_feedIcon->setPixmap(QPixmap(locate("data", "akregator/pics/rss.png")));
+ m_feedIcon->setPixmap(TQPixmap(locate("data", "akregator/pics/rss.png")));
- QToolTip::remove(m_feedIcon);
- QToolTip::add(m_feedIcon, i18n("Monitor this site for updates (using news feed)"));
+ TQToolTip::remove(m_feedIcon);
+ TQToolTip::add(m_feedIcon, i18n("Monitor this site for updates (using news feed)"));
m_statusBarEx->addStatusBarItem(m_feedIcon, 0, true);
- connect(m_feedIcon, SIGNAL(leftClickedURL()), this, SLOT(contextMenu()));
+ connect(m_feedIcon, TQT_SIGNAL(leftClickedURL()), this, TQT_SLOT(contextMenu()));
}
void KonqFeedIcon::removeFeedIcon()
@@ -188,7 +188,7 @@ void KonqFeedIcon::addFeed(int id)
{
if(id == 50000) return;
if(akregatorRunning())
- addFeedsViaDCOP(QStringList(fixRelativeURL(m_feedList[id].url(), m_part->baseURL())));
+ addFeedsViaDCOP(TQStringList(fixRelativeURL(m_feedList[id].url(), m_part->baseURL())));
else
addFeedViaCmdLine(fixRelativeURL(m_feedList[id].url(), m_part->baseURL()));
}
@@ -198,7 +198,7 @@ void KonqFeedIcon::addFeeds()
{
if(akregatorRunning())
{
- QStringList list;
+ TQStringList list;
for ( FeedDetectorEntryList::Iterator it = m_feedList.begin(); it != m_feedList.end(); ++it )
list.append(fixRelativeURL((*it).url(), m_part->baseURL()));
addFeedsViaDCOP(list);