diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-07-27 16:57:53 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-27 18:48:46 +0200 |
commit | 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch) | |
tree | 4655c7263ca5c64d23d10167cb459dd9cb253815 /src/torkapplet | |
parent | 88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff) | |
download | tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip |
Initial TQt conversion
Diffstat (limited to 'src/torkapplet')
-rw-r--r-- | src/torkapplet/tork_mnu.cpp | 22 | ||||
-rw-r--r-- | src/torkapplet/tork_mnu.h | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/torkapplet/tork_mnu.cpp b/src/torkapplet/tork_mnu.cpp index b354612..f44912b 100644 --- a/src/torkapplet/tork_mnu.cpp +++ b/src/torkapplet/tork_mnu.cpp @@ -25,9 +25,9 @@ #include <unistd.h> #include <sys/stat.h> -#include <qdir.h> -#include <qfileinfo.h> -#include <qstringlist.h> +#include <ntqdir.h> +#include <ntqfileinfo.h> +#include <ntqstringlist.h> #include <kapplication.h> #include <kglobal.h> @@ -49,10 +49,10 @@ K_EXPORT_KICKER_MENUEXT(tork, TorkMenu) -QValueVector<QString> torkifyApp(8); +TQValueVector<TQString> torkifyApp(8); -TorkMenu::TorkMenu(QWidget *parent, const char *name, const QStringList& /* args */) +TorkMenu::TorkMenu(TQWidget *parent, const char *name, const TQStringList& /* args */) : KPanelMenu("", parent, name),m_kdestate(true) { p_dcopServer= new DCOPClient(); @@ -90,7 +90,7 @@ void TorkMenu::initialize() torkifyApp[0] = "Firefox"; torkifyApp[7] = "Email"; - QStringList paths = getProgramList(); + TQStringList paths = getProgramList(); if (paths.contains("firefox")) @@ -160,14 +160,14 @@ void TorkMenu::slotExec(int id) void TorkMenu::anonymousApp(int id) { - QString app = torkifyApp[id]; + TQString app = torkifyApp[id]; app.prepend("anonymous"); if (m_torkrunning){ DCOPRef("tork*", "DCOPTork").send("startEverything"); - DCOPRef("tork*", "DCOPTork").send(QCString(app)); + DCOPRef("tork*", "DCOPTork").send(TQCString(app)); }else - KRun::runCommand( QString("tork --%1").arg(app), "tork", "tork" ); + KRun::runCommand( TQString("tork --%1").arg(app), "tork", "tork" ); } @@ -189,11 +189,11 @@ void TorkMenu::anonymizeKDE() } -QStringList TorkMenu::getProgramList() +TQStringList TorkMenu::getProgramList() { //Check for the existence of anonymizable/helper programs first. - QStringList programList; + TQStringList programList; programList << "firefox" << "kopete" << "gaim" << "pidgin" << "opera" << "konversation"; diff --git a/src/torkapplet/tork_mnu.h b/src/torkapplet/tork_mnu.h index fe49b40..274da88 100644 --- a/src/torkapplet/tork_mnu.h +++ b/src/torkapplet/tork_mnu.h @@ -23,7 +23,7 @@ #ifndef _tork_mnu_h_ #define _tork_mnu_h_ -#include <qvaluevector.h> +#include <ntqvaluevector.h> #include <kpanelmenu.h> #include <klibloader.h> @@ -35,14 +35,14 @@ class TorkMenu : public KPanelMenu/*, public KPReloadObject*/ Q_OBJECT public: - TorkMenu(QWidget *parent, const char *name, const QStringList& /* args */); + TorkMenu(TQWidget *parent, const char *name, const TQStringList& /* args */); ~TorkMenu(); void anonymousApp(int id); void anonymizeKDE(); bool m_kdestate; bool m_torkrunning; DCOPClient* p_dcopServer; - QStringList getProgramList(); + TQStringList getProgramList(); protected slots: void initialize(); void slotExec(int id); |