summaryrefslogtreecommitdiffstats
path: root/kig/scripting/script-common.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kig/scripting/script-common.cc
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/scripting/script-common.cc')
-rw-r--r--kig/scripting/script-common.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/kig/scripting/script-common.cc b/kig/scripting/script-common.cc
index 4bd2cbd8..2eb2da81 100644
--- a/kig/scripting/script-common.cc
+++ b/kig/scripting/script-common.cc
@@ -17,7 +17,7 @@
#include "script-common.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <kdebug.h>
#include <klocale.h>
@@ -35,18 +35,18 @@ static const script_prop scripts_properties[] =
{ I18N_NOOP( "Now fill in the Python code:" ), "source_py", "Python-Kig" }
};
-QString ScriptType::fillCodeStatement( ScriptType::Type type )
+TQString ScriptType::fillCodeStatement( ScriptType::Type type )
{
return i18n( scripts_properties[type].fillCodeStatement );
}
-QString ScriptType::templateCode( ScriptType::Type type, std::list<ObjectHolder*> args )
+TQString ScriptType::templateCode( ScriptType::Type type, std::list<ObjectHolder*> args )
{
if ( type == Python )
{
- QString tempcode = QString::fromLatin1( "def calc( " );
+ TQString tempcode = TQString::fromLatin1( "def calc( " );
bool firstarg = true;
- QString temparg = i18n( "Note to translators: this should be a default "
+ TQString temparg = i18n( "Note to translators: this should be a default "
"name for an argument in a Python function. The "
"default is \"arg%1\" which would become arg1, "
"arg2, etc. Give something which seems "
@@ -57,7 +57,7 @@ QString ScriptType::templateCode( ScriptType::Type type, std::list<ObjectHolder*
{
if ( !firstarg ) tempcode += ", ";
else firstarg = false;
- QString n = ( *i )->name();
+ TQString n = ( *i )->name();
tempcode += n.isEmpty() ? temparg.arg( id ) : n;
id++;
};
@@ -81,9 +81,9 @@ const char* ScriptType::icon( ScriptType::Type type )
return scripts_properties[type].icon;
}
-QString ScriptType::highlightStyle( ScriptType::Type type )
+TQString ScriptType::highlightStyle( ScriptType::Type type )
{
- return QString( scripts_properties[type].highlightStyle );
+ return TQString( scripts_properties[type].highlightStyle );
}
ScriptType::Type ScriptType::intToType( int type )