summaryrefslogtreecommitdiffstats
path: root/konq-plugins/minitools
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/minitools
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/minitools')
-rw-r--r--konq-plugins/minitools/minitoolsplugin.cpp48
-rw-r--r--konq-plugins/minitools/minitoolsplugin.h18
2 files changed, 33 insertions, 33 deletions
diff --git a/konq-plugins/minitools/minitoolsplugin.cpp b/konq-plugins/minitools/minitoolsplugin.cpp
index 53f109b..a1a5bfc 100644
--- a/konq-plugins/minitools/minitoolsplugin.cpp
+++ b/konq-plugins/minitools/minitoolsplugin.cpp
@@ -18,7 +18,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qfile.h>
+#include <tqfile.h>
#include <kdebug.h>
#include <kaction.h>
@@ -42,7 +42,7 @@
typedef KGenericFactory<MinitoolsPlugin> MinitoolsPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libminitoolsplugin, MinitoolsPluginFactory("minitoolsplugin") )
-MinitoolsPlugin::MinitoolsPlugin(QObject* parent, const char* name, const QStringList &)
+MinitoolsPlugin::MinitoolsPlugin(TQObject* parent, const char* name, const TQStringList &)
: KParts::Plugin(parent, name) {
m_part = (parent && parent->inherits( "KHTMLPart" )) ? static_cast<KHTMLPart*>(parent) : 0L;
@@ -51,8 +51,8 @@ MinitoolsPlugin::MinitoolsPlugin(QObject* parent, const char* name, const QStrin
m_pMinitoolsMenu->setDelayed(false);
m_pMinitoolsMenu->setEnabled(true);
- connect(m_pMinitoolsMenu->popupMenu(), SIGNAL( aboutToShow() ),
- this, SLOT( slotAboutToShow() ));
+ connect(m_pMinitoolsMenu->popupMenu(), TQT_SIGNAL( aboutToShow() ),
+ this, TQT_SLOT( slotAboutToShow() ));
}
MinitoolsPlugin::~MinitoolsPlugin() {
@@ -63,17 +63,17 @@ void MinitoolsPlugin::slotAboutToShow() {
m_minitoolsList.clear();
KXBELBookmarkImporterImpl importer;
- connect(&importer, SIGNAL( newBookmark( const QString &, const QCString &, const QString &) ),
- SLOT( newBookmarkCallback( const QString &, const QCString &, const QString & ) ));
- connect(&importer, SIGNAL( endFolder() ),
- SLOT( endFolderCallback() ));
- QString filename = minitoolsFilename(true);
- if (!filename.isEmpty() && QFile::exists(filename)) {
+ connect(&importer, TQT_SIGNAL( newBookmark( const TQString &, const TQCString &, const TQString &) ),
+ TQT_SLOT( newBookmarkCallback( const TQString &, const TQCString &, const TQString & ) ));
+ connect(&importer, TQT_SIGNAL( endFolder() ),
+ TQT_SLOT( endFolderCallback() ));
+ TQString filename = minitoolsFilename(true);
+ if (!filename.isEmpty() && TQFile::exists(filename)) {
importer.setFilename(filename);
importer.parse();
}
filename = minitoolsFilename(false);
- if (!filename.isEmpty() && QFile::exists(filename)) {
+ if (!filename.isEmpty() && TQFile::exists(filename)) {
importer.setFilename(filename);
importer.parse();
}
@@ -94,7 +94,7 @@ void MinitoolsPlugin::slotAboutToShow() {
gotSep = true;
count++;
} else {
- QString str = (*e).first;
+ TQString str = (*e).first;
// emsquieezzy thingy?
if (str.length() > 48) {
str.truncate(48);
@@ -102,7 +102,7 @@ void MinitoolsPlugin::slotAboutToShow() {
}
m_pMinitoolsMenu->popupMenu()->insertItem(
str, this,
- SLOT(slotItemSelected(int)),
+ TQT_SLOT(slotItemSelected(int)),
0, ++count );
gotSep = false;
}
@@ -116,12 +116,12 @@ void MinitoolsPlugin::slotAboutToShow() {
m_pMinitoolsMenu->popupMenu()
->insertItem(i18n("&Edit Minitools"),
- this, SLOT(slotEditBookmarks()),
+ this, TQT_SLOT(slotEditBookmarks()),
0, ++count );
}
void MinitoolsPlugin::newBookmarkCallback(
- const QString & text, const QCString & url, const QString &
+ const TQString & text, const TQCString & url, const TQString &
) {
kdDebug(90150) << "MinitoolsPlugin::newBookmarkCallback" << text << url << endl;
m_minitoolsList.prepend(qMakePair(text,url));
@@ -129,12 +129,12 @@ void MinitoolsPlugin::newBookmarkCallback(
void MinitoolsPlugin::endFolderCallback() {
kdDebug(90150) << "MinitoolsPlugin::endFolderCallback" << endl;
- m_minitoolsList.prepend(qMakePair(QString("-"),QCString("-")));
+ m_minitoolsList.prepend(qMakePair(TQString("-"),TQCString("-")));
}
-QString MinitoolsPlugin::minitoolsFilename(bool local) {
- return local ? locateLocal("data", QString::fromLatin1("konqueror/minitools.xml"))
- : locateLocal("data", QString::fromLatin1("konqueror/minitools-global.xml"));
+TQString MinitoolsPlugin::minitoolsFilename(bool local) {
+ return local ? locateLocal("data", TQString::fromLatin1("konqueror/minitools.xml"))
+ : locateLocal("data", TQString::fromLatin1("konqueror/minitools-global.xml"));
}
void MinitoolsPlugin::slotEditBookmarks() {
@@ -145,12 +145,12 @@ void MinitoolsPlugin::slotEditBookmarks() {
void MinitoolsPlugin::slotItemSelected(int id) {
if (m_minitoolsList.count() == 0)
return;
- QString tmp = m_minitoolsList[id-1].second;
- QString script = KURL::decode_string(tmp.right(tmp.length() - 11)); // sizeof("javascript:")
- connect(this, SIGNAL( executeScript(const QString &) ),
- m_part, SLOT( executeScript(const QString &) ));
+ TQString tmp = m_minitoolsList[id-1].second;
+ TQString script = KURL::decode_string(tmp.right(tmp.length() - 11)); // sizeof("javascript:")
+ connect(this, TQT_SIGNAL( executeScript(const TQString &) ),
+ m_part, TQT_SLOT( executeScript(const TQString &) ));
emit executeScript(script);
- disconnect(this, SIGNAL( executeScript(const QString &) ), 0, 0);
+ disconnect(this, TQT_SIGNAL( executeScript(const TQString &) ), 0, 0);
}
#include "minitoolsplugin.moc"
diff --git a/konq-plugins/minitools/minitoolsplugin.h b/konq-plugins/minitools/minitoolsplugin.h
index 7db1a77..04d2ae8 100644
--- a/konq-plugins/minitools/minitoolsplugin.h
+++ b/konq-plugins/minitools/minitoolsplugin.h
@@ -21,9 +21,9 @@
#ifndef __MINITOOLS_PLUGIN_H
#define __MINITOOLS_PLUGIN_H
-#include <qmap.h>
-#include <qvaluelist.h>
-#include <qstringlist.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
#include <kurl.h>
#include <klibloader.h>
@@ -36,29 +36,29 @@ class MinitoolsPlugin : public KParts::Plugin {
Q_OBJECT
public:
- MinitoolsPlugin( QObject* parent, const char* name, const QStringList & );
+ MinitoolsPlugin( TQObject* parent, const char* name, const TQStringList & );
~MinitoolsPlugin();
protected slots:
void slotAboutToShow();
void slotEditBookmarks();
void slotItemSelected(int);
- void newBookmarkCallback( const QString &, const QCString &, const QString & );
+ void newBookmarkCallback( const TQString &, const TQCString &, const TQString & );
void endFolderCallback( );
signals:
- void executeScript( const QString &script );
+ void executeScript( const TQString &script );
private:
- QString minitoolsFilename(bool local);
+ TQString minitoolsFilename(bool local);
int m_selectedItem;
KHTMLPart* m_part;
KActionMenu* m_pMinitoolsMenu;
- typedef QPair<QString,QCString> Minitool;
- typedef QValueList<Minitool> MinitoolsList;
+ typedef QPair<TQString,TQCString> Minitool;
+ typedef TQValueList<Minitool> MinitoolsList;
MinitoolsList m_minitoolsList;
};