diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /interfaces/kscript/scriptloader.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/kscript/scriptloader.cpp')
-rw-r--r-- | interfaces/kscript/scriptloader.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/interfaces/kscript/scriptloader.cpp b/interfaces/kscript/scriptloader.cpp index 6ab7e091c..621ceb5d1 100644 --- a/interfaces/kscript/scriptloader.cpp +++ b/interfaces/kscript/scriptloader.cpp @@ -29,18 +29,18 @@ #include <kstdaccel.h> #include <kdebug.h> -#include <qdir.h> -#include <qfileinfo.h> +#include <tqdir.h> +#include <tqfileinfo.h> -ScriptLoader::ScriptLoader(KMainWindow *parent) : QObject (parent) +ScriptLoader::ScriptLoader(KMainWindow *parent) : TQObject (parent) { m_parent = parent; m_scripts.clear(); m_theAction = new KSelectAction ( i18n("KDE Scripts"), 0, this, - SLOT(runAction()), + TQT_SLOT(runAction()), m_parent->actionCollection(), "scripts"); } @@ -54,15 +54,15 @@ ScriptLoader::~ScriptLoader() KSelectAction * ScriptLoader::getScripts() { // Get the available scripts for this application. - QStringList pluginList = ""; + TQStringList pluginList = ""; // Find plugins - QString searchPath = kapp->name(); + TQString searchPath = kapp->name(); searchPath += "/scripts/"; - QDir d(locate( "data", searchPath)); + TQDir d(locate( "data", searchPath)); kdDebug() << "loading plugin from " << locate( "data", searchPath) << endl; const QFileInfoList *fileList = d.entryInfoList("*.desktop"); QFileInfoListIterator it ( *fileList ); - QFileInfo *fi; + TQFileInfo *fi; // Find all available script desktop files while( (fi=it.current())) { @@ -92,7 +92,7 @@ KSelectAction * ScriptLoader::getScripts() void ScriptLoader::runAction() { - QString scriptName = m_theAction->currentText(); + TQString scriptName = m_theAction->currentText(); } |