summaryrefslogtreecommitdiffstats
path: root/kjsembed/kscript/javascript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/kscript/javascript.cpp')
-rw-r--r--kjsembed/kscript/javascript.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kjsembed/kscript/javascript.cpp b/kjsembed/kscript/javascript.cpp
index 22de1aef..51cc6b4d 100644
--- a/kjsembed/kscript/javascript.cpp
+++ b/kjsembed/kscript/javascript.cpp
@@ -31,7 +31,7 @@
typedef KGenericFactory<JavaScript, KScriptClientInterface> JavaScriptFactory;
K_EXPORT_COMPONENT_FACTORY( libjavascript, JavaScriptFactory( "JavaScript" ) )
-JavaScript::JavaScript(KScriptClientInterface *parent, const char *name, const TQStringList &args )
+JavaScript::JavaScript(KScriptClientInterface *parent, const char *name, const TTQStringList &args )
{
ScriptClientInterface = parent;
m_jsembed = new KJSEmbed::KJSEmbedPart(this, "kjsembed_part");
@@ -45,25 +45,25 @@ JavaScript::~JavaScript()
{
}
-TQString JavaScript::script() const
+TTQString JavaScript::script() const
{
return m_scriptLoc;
}
-void JavaScript::setScript( const TQString &scriptFile )
+void JavaScript::setScript( const TTQString &scriptFile )
{
m_scriptLoc = scriptFile;
}
-void JavaScript::setScript( const TQString &scriptFile, const TQString &method )
+void JavaScript::setScript( const TTQString &scriptFile, const TTQString &method )
{
m_scriptLoc = scriptFile;
m_method = method;
}
-void JavaScript::run(TQObject *context, const TQVariant &arg)
+void JavaScript::run(TTQObject *context, const TTQVariant &arg)
{
- TQVariant retVal;
+ TTQVariant retVal;
if( context ) m_jsembed->addObject(context);
m_jsembed->runFile(m_scriptLoc, m_jsembed->globalObject() );
@@ -78,17 +78,17 @@ void JavaScript::run(TQObject *context, const TQVariant &arg)
ScriptClientInterface->done(KScriptClientInterface::ResultSuccess, retVal);
}
-void JavaScript::writeLine( const TQString &msg )
+void JavaScript::writeLine( const TTQString &msg )
{
ScriptClientInterface->output(msg);
}
-void JavaScript::writeWarning( const TQString &msg )
+void JavaScript::writeWarning( const TTQString &msg )
{
ScriptClientInterface->warning(msg);
}
-void JavaScript::writeError( const TQString &msg )
+void JavaScript::writeError( const TTQString &msg )
{
ScriptClientInterface->error(msg);
}
@@ -98,7 +98,7 @@ void JavaScript::setProgress( int percent )
ScriptClientInterface->progress(percent);
}
-TQString JavaScript::appID() const
+TTQString JavaScript::appID() const
{
return kapp->dcopClient()->appId();
}