summaryrefslogtreecommitdiffstats
path: root/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp')
-rw-r--r--knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp b/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp
index 93bc71cc..14ca80d0 100644
--- a/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp
+++ b/knewsticker/kntsrcfilepropsdlg/kntsrcfilepropsdlg.cpp
@@ -25,15 +25,15 @@
#include <kstandarddirs.h>
#include <kglobal.h>
-#include <qmultilineedit.h>
-#include <qvbox.h>
+#include <tqmultilineedit.h>
+#include <tqvbox.h>
using namespace RSS;
class ArticleListBoxItem : public QListBoxText
{
public:
- ArticleListBoxItem( QListBox *listbox, const Article &article );
+ ArticleListBoxItem( TQListBox *listbox, const Article &article );
const Article &article() const { return m_article; }
@@ -41,8 +41,8 @@ class ArticleListBoxItem : public QListBoxText
Article m_article;
};
-ArticleListBoxItem::ArticleListBoxItem( QListBox *listbox, const Article &article )
- : QListBoxText( listbox ),
+ArticleListBoxItem::ArticleListBoxItem( TQListBox *listbox, const Article &article )
+ : TQListBoxText( listbox ),
m_article( article )
{
setText( article.title() );
@@ -52,18 +52,18 @@ KntSrcFilePropsDlg::KntSrcFilePropsDlg(KPropertiesDialog *props)
: KPropsDlgPlugin(props)
{
m_child = new KntSrcFilePropsDlgWidget(properties->addVBoxPage(i18n("News Resource")));
- connect(m_child->urlName, SIGNAL(leftClickedURL(const QString &)),
- SLOT(slotOpenURL(const QString &)));
- connect(m_child->lbArticles, SIGNAL(executed(QListBoxItem *)),
- SLOT(slotClickedArticle(QListBoxItem *)));
+ connect(m_child->urlName, TQT_SIGNAL(leftClickedURL(const TQString &)),
+ TQT_SLOT(slotOpenURL(const TQString &)));
+ connect(m_child->lbArticles, TQT_SIGNAL(executed(TQListBoxItem *)),
+ TQT_SLOT(slotClickedArticle(TQListBoxItem *)));
Loader *loader = Loader::create();
- connect(loader, SIGNAL(loadingComplete(Loader *, Document, Status)),
- SLOT(slotConstructUI(Loader *, Document, Status)));
+ connect(loader, TQT_SIGNAL(loadingComplete(Loader *, Document, Status)),
+ TQT_SLOT(slotConstructUI(Loader *, Document, Status)));
loader->loadFrom(props->item()->url(), new FileRetriever);
- connect(NewsIconMgr::self(), SIGNAL(gotIcon(const KURL &, const QPixmap &)),
- SLOT(slotGotIcon(const KURL &, const QPixmap &)));
+ connect(NewsIconMgr::self(), TQT_SIGNAL(gotIcon(const KURL &, const TQPixmap &)),
+ TQT_SLOT(slotGotIcon(const KURL &, const TQPixmap &)));
m_child->show();
}
@@ -74,7 +74,7 @@ void KntSrcFilePropsDlg::slotConstructUI(Loader *, Document doc, Status status)
return;
KURL iconURL = doc.link();
- iconURL.setEncodedPathAndQuery(QString::fromLatin1("/favicon.ico"));
+ iconURL.setEncodedPathAndQuery(TQString::fromLatin1("/favicon.ico"));
NewsIconMgr::self()->getIcon(iconURL);
m_child->urlName->setText(doc.title());
@@ -88,31 +88,31 @@ void KntSrcFilePropsDlg::slotConstructUI(Loader *, Document doc, Status status)
new ArticleListBoxItem(m_child->lbArticles, *it);
}
-void KntSrcFilePropsDlg::slotOpenURL(const QString &url)
+void KntSrcFilePropsDlg::slotOpenURL(const TQString &url)
{
kapp->invokeBrowser(url);
}
-void KntSrcFilePropsDlg::slotGotIcon(const KURL &, const QPixmap &pixmap)
+void KntSrcFilePropsDlg::slotGotIcon(const KURL &, const TQPixmap &pixmap)
{
m_child->pixmapIcon->setPixmap(pixmap);
}
-void KntSrcFilePropsDlg::slotClickedArticle(QListBoxItem *item)
+void KntSrcFilePropsDlg::slotClickedArticle(TQListBoxItem *item)
{
ArticleListBoxItem *articleItem = static_cast<ArticleListBoxItem *>(item);
slotOpenURL(articleItem->article().link().url());
}
-QObject *KntSrcFilePropsFactory::createObject(QObject *parent, const char *,
- const char *classname, const QStringList &)
+TQObject *KntSrcFilePropsFactory::createObject(TQObject *parent, const char *,
+ const char *classname, const TQStringList &)
{
- if (QString::fromLatin1(classname) == "KPropsDlgPlugin")
+ if (TQString::fromLatin1(classname) == "KPropsDlgPlugin")
{
if (!parent->inherits("KPropertiesDialog"))
return 0L;
- QObject *obj = new KntSrcFilePropsDlg(static_cast<KPropertiesDialog *>(parent));
+ TQObject *obj = new KntSrcFilePropsDlg(static_cast<KPropertiesDialog *>(parent));
return obj;
}
return 0L;