summaryrefslogtreecommitdiffstats
path: root/konq-plugins/akregator/akregatorplugin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /konq-plugins/akregator/akregatorplugin.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/akregator/akregatorplugin.cpp')
-rw-r--r--konq-plugins/akregator/akregatorplugin.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/konq-plugins/akregator/akregatorplugin.cpp b/konq-plugins/akregator/akregatorplugin.cpp
index a2a82f2..2f59adc 100644
--- a/konq-plugins/akregator/akregatorplugin.cpp
+++ b/konq-plugins/akregator/akregatorplugin.cpp
@@ -38,21 +38,21 @@
#include <khtmlview.h>
#include <kmessagebox.h>
-#include <qdir.h>
-#include <qcstring.h>
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqdir.h>
+#include <tqcstring.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
using namespace Akregator;
typedef KGenericFactory<AkregatorMenu, KonqPopupMenu> AkregatorMenuFactory;
K_EXPORT_COMPONENT_FACTORY( libakregatorkonqplugin, AkregatorMenuFactory("akregatorkonqplugin") )
-AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const QStringList& /* list */ )
+AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringList& /* list */ )
: KonqPopupMenuPlugin( popupmenu, name), PluginBase(), m_conf(0), m_part(0)
{
kdDebug() << "AkregatorMenu::AkregatorMenu()" << endl;
- if ( QCString( kapp->name() ) == "kdesktop" && !kapp->authorize("editable_desktop_icons" ) )
+ if ( TQCString( kapp->name() ) == "kdesktop" && !kapp->authorize("editable_desktop_icons" ) )
return;
// Do nothing if user has turned us off.
@@ -84,7 +84,7 @@ AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const
if (isFeedUrl(it))
{
kdDebug() << "AkregatorMenu: found feed URL " << it->url().prettyURL() << endl;
- KAction *action = new KAction( i18n( "Add Feed to Akregator" ), "akregator", 0, this, SLOT( slotAddFeed() ), actionCollection(), "akregatorkonqplugin_mnu" );
+ KAction *action = new KAction( i18n( "Add Feed to Akregator" ), "akregator", 0, this, TQT_SLOT( slotAddFeed() ), actionCollection(), "akregatorkonqplugin_mnu" );
addAction( action );
addSeparator();
m_feedURL = it->url().url();
@@ -101,7 +101,7 @@ AkregatorMenu::~AkregatorMenu()
delete m_conf;
}
-bool AkregatorMenu::isFeedUrl(const QString &url)
+bool AkregatorMenu::isFeedUrl(const TQString &url)
{
if (url.contains(".htm", false) != 0) return false;
if (url.contains("rss", false) != 0) return true;
@@ -116,7 +116,7 @@ bool AkregatorMenu::isFeedUrl(const KFileItem * item)
return true;
else
{
- QString url = item->url().url();
+ TQString url = item->url().url();
// If URL ends in .htm or .html, it is not a feed url.
return isFeedUrl(url);
}
@@ -125,9 +125,9 @@ bool AkregatorMenu::isFeedUrl(const KFileItem * item)
void AkregatorMenu::slotAddFeed()
{
- QString url = m_part ? fixRelativeURL(m_feedURL, m_part->baseURL()) : m_feedURL;
+ TQString url = m_part ? fixRelativeURL(m_feedURL, m_part->baseURL()) : m_feedURL;
if(akregatorRunning())
- addFeedsViaDCOP(QStringList(url));
+ addFeedsViaDCOP(TQStringList(url));
else
addFeedViaCmdLine(url);
}