summaryrefslogtreecommitdiffstats
path: root/interfaces/tdescript/sample
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/tdescript/sample')
-rw-r--r--interfaces/tdescript/sample/shellscript.cpp8
-rw-r--r--interfaces/tdescript/sample/shellscript.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/interfaces/tdescript/sample/shellscript.cpp b/interfaces/tdescript/sample/shellscript.cpp
index 766613551..13b634cc6 100644
--- a/interfaces/tdescript/sample/shellscript.cpp
+++ b/interfaces/tdescript/sample/shellscript.cpp
@@ -31,9 +31,9 @@ K_EXPORT_COMPONENT_FACTORY( libshellscript, ShellScriptFactory( "ShellScript" )
ShellScript::ShellScript(KScriptClientInterface *parent, const char *, const TQStringList & ) : ScriptClientInterface(parent)
{
m_script = new TDEProcess();
- connect ( m_script, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(Exit(TDEProcess *)));
- connect ( m_script, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQT_SLOT(stdOut(TDEProcess *, char *, int )));
- connect ( m_script, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQT_SLOT(stdErr(TDEProcess *, char *, int )));
+ connect ( m_script, TQ_SIGNAL(processExited(TDEProcess *)), TQ_SLOT(Exit(TDEProcess *)));
+ connect ( m_script, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQ_SLOT(stdOut(TDEProcess *, char *, int )));
+ connect ( m_script, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)), TQ_SLOT(stdErr(TDEProcess *, char *, int )));
// Connect feedback signals and slots
//kdDebug() << "Building new script engine" << endl;
}
@@ -50,7 +50,7 @@ TQString ShellScript::script() const
void ShellScript::setScript( const TQString &scriptFile )
{
m_scriptName = scriptFile;
- *m_script << "sh" << m_scriptName << kapp->dcopClient()->appId();
+ *m_script << "sh" << m_scriptName << tdeApp->dcopClient()->appId();
}
void ShellScript::setScript( const TQString &, const TQString & )
diff --git a/interfaces/tdescript/sample/shellscript.h b/interfaces/tdescript/sample/shellscript.h
index 2cdaf7e5a..dc62dde33 100644
--- a/interfaces/tdescript/sample/shellscript.h
+++ b/interfaces/tdescript/sample/shellscript.h
@@ -22,11 +22,11 @@
#include <scriptinterface.h>
#include <tqvariant.h>
#include <tqobject.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
//using namespace KScriptInterface;
class ShellScript : public KScriptInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
ShellScript(KScriptClientInterface *parent, const char *name, const TQStringList &args);
virtual ~ShellScript();