summaryrefslogtreecommitdiffstats
path: root/src/gvcore/externaltoolaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/externaltoolaction.cpp
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz
gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/externaltoolaction.cpp')
-rw-r--r--src/gvcore/externaltoolaction.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gvcore/externaltoolaction.cpp b/src/gvcore/externaltoolaction.cpp
index f8e4ad6..4953e8d 100644
--- a/src/gvcore/externaltoolaction.cpp
+++ b/src/gvcore/externaltoolaction.cpp
@@ -18,8 +18,8 @@ Copyright 2000-2004 Aur�lien G�teau
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-// Qt
-#include <qdir.h>
+// TQt
+#include <tqdir.h>
// KDE
#include <kdebug.h>
@@ -31,25 +31,25 @@ Copyright 2000-2004 Aur�lien G�teau
namespace Gwenview {
ExternalToolAction::ExternalToolAction(
- QObject* parent, const KService* service,
+ TQObject* tqparent, const KService* service,
const KURL::List& urls)
-: KAction(parent)
+: KAction(tqparent)
, mService(service)
, mURLs(urls)
{
setText(service->name());
setIcon(service->icon());
- connect(this, SIGNAL(activated()),
- this, SLOT(openExternalTool()) );
+ connect(this, TQT_SIGNAL(activated()),
+ this, TQT_SLOT(openExternalTool()) );
}
void ExternalToolAction::openExternalTool() {
- QString dir=mURLs.first().directory();
- QDir::setCurrent(dir);
+ TQString dir=mURLs.first().directory();
+ TQDir::setCurrent(dir);
- QStringList args=KRun::processDesktopExec(*mService, mURLs, true);
+ TQStringList args=KRun::processDesktopExec(*mService, mURLs, true);
KRun::runCommand(args.join(" "), mService->name(), mService->icon());
}