summaryrefslogtreecommitdiffstats
path: root/lib/kross/test
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/test')
-rw-r--r--lib/kross/test/main.cpp8
-rw-r--r--lib/kross/test/testobject.cpp12
-rw-r--r--lib/kross/test/testwindow.cpp6
3 files changed, 13 insertions, 13 deletions
diff --git a/lib/kross/test/main.cpp b/lib/kross/test/main.cpp
index 42198201..7f304ba6 100644
--- a/lib/kross/test/main.cpp
+++ b/lib/kross/test/main.cpp
@@ -107,7 +107,7 @@ void runInterpreter(const TQString& interpretername, const TQString& scriptcode)
if(testclassinstance) {
TQValueList<Kross::Api::Object*> ll;
Kross::Api::Object* instancecallresult = testclassinstance->call("testClassFunction1", Kross::Api::List::create(ll));
- //krossdebug( TQString("testClass.testClassFunction1 returnvalue => '%1'").tqarg( instancecallresult.toString() ) );
+ //krossdebug( TQString("testClass.testClassFunction1 returnvalue => '%1'").arg( instancecallresult.toString() ) );
}
*/
@@ -121,7 +121,7 @@ void runInterpreter(const TQString& interpretername, const TQString& scriptcode)
*/
}
catch(Kross::Api::Exception::Ptr e) {
- std::cout << TQString("EXCEPTION %1").tqarg(e->toString()).latin1() << std::endl;
+ std::cout << TQString("EXCEPTION %1").arg(e->toString()).latin1() << std::endl;
}
/*TESTCASE
@@ -132,7 +132,7 @@ void runInterpreter(const TQString& interpretername, const TQString& scriptcode)
sc2->execute();
}
catch(Kross::Api::Exception& e) {
- krossdebug( TQString("EXCEPTION type='%1' description='%2'").tqarg(e.type()).tqarg(e.description()) );
+ krossdebug( TQString("EXCEPTION type='%1' description='%2'").arg(e.type()).arg(e.description()) );
}
//delete sc2;
*/
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
}
}
else {
- Kross::krosswarning( TQString("Failed to load scriptfile: %1").tqarg(scriptfilename) );
+ Kross::krosswarning( TQString("Failed to load scriptfile: %1").arg(scriptfilename) );
result = -1;
}
diff --git a/lib/kross/test/testobject.cpp b/lib/kross/test/testobject.cpp
index eb687d02..884e7e37 100644
--- a/lib/kross/test/testobject.cpp
+++ b/lib/kross/test/testobject.cpp
@@ -48,24 +48,24 @@ TestObject::~TestObject()
uint TestObject::func1(uint i)
{
- Kross::krossdebug(TQString("CALLED => TestObject::func1 i=%1").tqarg(i) );
+ Kross::krossdebug(TQString("CALLED => TestObject::func1 i=%1").arg(i) );
return i;
}
void TestObject::func2(TQString s, int i)
{
- Kross::krossdebug(TQString("CALLED => TestObject::func2 s=%1 i=%2").tqarg(s).tqarg(i));
+ Kross::krossdebug(TQString("CALLED => TestObject::func2 s=%1 i=%2").arg(s).arg(i));
}
TQString TestObject::func3(TQString s, int i)
{
- Kross::krossdebug(TQString("CALLED => TestObject::func3 s=%1 i=%2").tqarg(s).tqarg(i));
+ Kross::krossdebug(TQString("CALLED => TestObject::func3 s=%1 i=%2").arg(s).arg(i));
return s;
}
const TQString& TestObject::func4(const TQString& s, int i) const
{
- Kross::krossdebug(TQString("CALLED => TestObject::func4 s=%1 i=%2").tqarg(s).tqarg(i));
+ Kross::krossdebug(TQString("CALLED => TestObject::func4 s=%1 i=%2").arg(s).arg(i));
return s;
}
@@ -83,13 +83,13 @@ void TestObject::testSlot2()
void TestObject::stdoutSlot(const TQString& s)
{
- Kross::krossdebug(TQString("stdout: %1").tqarg(s));
+ Kross::krossdebug(TQString("stdout: %1").arg(s));
//std::cout << "<stdout> " << s.latin1() << std::endl;
}
void TestObject::stderrSlot(const TQString& s)
{
- Kross::krossdebug(TQString("stderr: %1").tqarg(s));
+ Kross::krossdebug(TQString("stderr: %1").arg(s));
//std::cout << "<stderr> " << s.latin1() << std::endl;
}
diff --git a/lib/kross/test/testwindow.cpp b/lib/kross/test/testwindow.cpp
index 5aa33958..ec2960b0 100644
--- a/lib/kross/test/testwindow.cpp
+++ b/lib/kross/test/testwindow.cpp
@@ -53,7 +53,7 @@ TestWindow::TestWindow(const TQString& interpretername, const TQString& scriptco
file = TQDir(TQDir::currentDirPath()).filePath("testscripting.rc");
else Kross::krossdebug("-------------------------222222");
- Kross::krossdebug(TQString("XML-file: %1").tqarg(file));
+ Kross::krossdebug(TQString("XML-file: %1").arg(file));
m_scriptextension->setXMLFile(file);
//menuFile->insertSeparator();
@@ -99,11 +99,11 @@ void TestWindow::execute()
m_scriptcontainer->setCode(m_codeedit->text());
Kross::Api::Object::Ptr result = m_scriptcontainer->execute();
if(m_scriptcontainer->hadException()) {
- Kross::krossdebug( TQString("EXCEPTION => %1").tqarg(m_scriptcontainer->getException()->toString()) );
+ Kross::krossdebug( TQString("EXCEPTION => %1").arg(m_scriptcontainer->getException()->toString()) );
}
else {
TQString s = result ? result->toString() : TQString();
- Kross::krossdebug( TQString("DONE => %1").tqarg(s) );
+ Kross::krossdebug( TQString("DONE => %1").arg(s) );
}
}