From 0a6e0958c03e41c87b15557b6f407874f20c2f8d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:39:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kig/scripting/script-common.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kig/scripting/script-common.cc') 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 +#include #include #include @@ -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 args ) +TQString ScriptType::templateCode( ScriptType::Type type, std::list 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::listname(); + 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 ) -- cgit v1.2.3