diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/kscript | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'kjsembed/kscript')
-rw-r--r-- | kjsembed/kscript/javascript.cpp | 20 | ||||
-rw-r--r-- | kjsembed/kscript/javascript.h | 24 |
2 files changed, 22 insertions, 22 deletions
diff --git a/kjsembed/kscript/javascript.cpp b/kjsembed/kscript/javascript.cpp index 51cc6b4d..22de1aef 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 TTQStringList &args ) +JavaScript::JavaScript(KScriptClientInterface *parent, const char *name, const TQStringList &args ) { ScriptClientInterface = parent; m_jsembed = new KJSEmbed::KJSEmbedPart(this, "kjsembed_part"); @@ -45,25 +45,25 @@ JavaScript::~JavaScript() { } -TTQString JavaScript::script() const +TQString JavaScript::script() const { return m_scriptLoc; } -void JavaScript::setScript( const TTQString &scriptFile ) +void JavaScript::setScript( const TQString &scriptFile ) { m_scriptLoc = scriptFile; } -void JavaScript::setScript( const TTQString &scriptFile, const TTQString &method ) +void JavaScript::setScript( const TQString &scriptFile, const TQString &method ) { m_scriptLoc = scriptFile; m_method = method; } -void JavaScript::run(TTQObject *context, const TTQVariant &arg) +void JavaScript::run(TQObject *context, const TQVariant &arg) { - TTQVariant retVal; + TQVariant retVal; if( context ) m_jsembed->addObject(context); m_jsembed->runFile(m_scriptLoc, m_jsembed->globalObject() ); @@ -78,17 +78,17 @@ void JavaScript::run(TTQObject *context, const TTQVariant &arg) ScriptClientInterface->done(KScriptClientInterface::ResultSuccess, retVal); } -void JavaScript::writeLine( const TTQString &msg ) +void JavaScript::writeLine( const TQString &msg ) { ScriptClientInterface->output(msg); } -void JavaScript::writeWarning( const TTQString &msg ) +void JavaScript::writeWarning( const TQString &msg ) { ScriptClientInterface->warning(msg); } -void JavaScript::writeError( const TTQString &msg ) +void JavaScript::writeError( const TQString &msg ) { ScriptClientInterface->error(msg); } @@ -98,7 +98,7 @@ void JavaScript::setProgress( int percent ) ScriptClientInterface->progress(percent); } -TTQString JavaScript::appID() const +TQString JavaScript::appID() const { return kapp->dcopClient()->appId(); } diff --git a/kjsembed/kscript/javascript.h b/kjsembed/kscript/javascript.h index 2fb07509..fa76a341 100644 --- a/kjsembed/kscript/javascript.h +++ b/kjsembed/kscript/javascript.h @@ -31,30 +31,30 @@ namespace KJSEmbed { class JavaScript : public KScriptInterface { Q_OBJECT - Q_PROPERTY( TTQString appID READ appID ) + Q_PROPERTY( TQString appID READ appID ) public: - JavaScript(KScriptClientInterface *parent, const char *name, const TTQStringList &args); + JavaScript(KScriptClientInterface *parent, const char *name, const TQStringList &args); virtual ~JavaScript(); - TTQString script() const; - void setScript( const TTQString &scriptFile ); - void setScript( const TTQString &scriptLibFile, const TTQString &method ); - void run(TTQObject *context = 0, const TTQVariant &arg = 0); + TQString script() const; + void setScript( const TQString &scriptFile ); + void setScript( const TQString &scriptLibFile, const TQString &method ); + void run(TQObject *context = 0, const TQVariant &arg = 0); void kill(); - TTQString appID() const; + TQString appID() const; public slots: - void writeLine( const TTQString &msg ); - void writeWarning( const TTQString &msg ); - void writeError( const TTQString &msg ); + void writeLine( const TQString &msg ); + void writeWarning( const TQString &msg ); + void writeError( const TQString &msg ); void setProgress( int percent ); private: KScriptClientInterface *ScriptClientInterface; KJSEmbed::KJSEmbedPart *m_jsembed; - TTQString m_method; - TTQString m_scriptLoc; + TQString m_method; + TQString m_scriptLoc; }; #endif |