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/testcase.py4
-rw-r--r--lib/kross/test/testgui.py18
-rw-r--r--lib/kross/test/testobject.cpp12
-rw-r--r--lib/kross/test/testwindow.cpp6
5 files changed, 24 insertions, 24 deletions
diff --git a/lib/kross/test/main.cpp b/lib/kross/test/main.cpp
index 7f304ba6..42198201 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'").arg( instancecallresult.toString() ) );
+ //krossdebug( TQString("testClass.testClassFunction1 returnvalue => '%1'").tqarg( 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").arg(e->toString()).latin1() << std::endl;
+ std::cout << TQString("EXCEPTION %1").tqarg(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'").arg(e.type()).arg(e.description()) );
+ krossdebug( TQString("EXCEPTION type='%1' description='%2'").tqarg(e.type()).tqarg(e.description()) );
}
//delete sc2;
*/
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
}
}
else {
- Kross::krosswarning( TQString("Failed to load scriptfile: %1").arg(scriptfilename) );
+ Kross::krosswarning( TQString("Failed to load scriptfile: %1").tqarg(scriptfilename) );
result = -1;
}
diff --git a/lib/kross/test/testcase.py b/lib/kross/test/testcase.py
index f1540201..9fa58bc2 100644
--- a/lib/kross/test/testcase.py
+++ b/lib/kross/test/testcase.py
@@ -79,8 +79,8 @@ class TestPlugin(unittest.TestCase):
self.assert_( self.pluginobject1.stringfunc(" Another \n\r Test! $%&\"") == " Another \n\r Test! $%&\"" )
#TODO
- #self.assert_( self.pluginobject1.stringfunc( unicode(" Unicode test ") ) == " Unicode test " )
- #self.assert_( self.pluginobject1.stringfunc(unicode(" Another Test! ")) == unicode(" Another Test! ") )
+ #self.assert_( self.pluginobject1.stringfunc( tqunicode(" Unicode test ") ) == " Unicode test " )
+ #self.assert_( self.pluginobject1.stringfunc(tqunicode(" Another Test! ")) == tqunicode(" Another Test! ") )
self.assert_( self.pluginobject1.stringstringfunc("MyString1", "MyString2") == "MyString1" )
self.assert_( self.pluginobject1.uintdoublestringfunc(8529,285.246,"String") == 8529 )
diff --git a/lib/kross/test/testgui.py b/lib/kross/test/testgui.py
index 22b6f04b..6a629c66 100644
--- a/lib/kross/test/testgui.py
+++ b/lib/kross/test/testgui.py
@@ -89,27 +89,27 @@ class QtTest:
qt.QDialog.__init__(self, parent, name, modal, fl)
qt.QDialog.accept = self.accept
self.setCaption("Export to HTML")
- #self.layout()
+ #self.tqlayout()
- self.layout = qt.QVBoxLayout(self)
- self.layout.setSpacing(6)
- self.layout.setMargin(11)
+ self.tqlayout = qt.QVBoxLayout(self)
+ self.tqlayout.setSpacing(6)
+ self.tqlayout.setMargin(11)
infolabel = qt.QLabel("Export the data of a table or a query to a HTML-file.", self)
- self.layout.addWidget(infolabel)
+ self.tqlayout.addWidget(infolabel)
source = ComboBox(self, "Datasource:")
- self.layout.addWidget(source)
+ self.tqlayout.addWidget(source)
self.exporttype = ComboBox(self, "Style:", ["Plain","Paper","Desert","Blues"])
- self.layout.addWidget(self.exporttype)
+ self.tqlayout.addWidget(self.exporttype)
self.filechooser = FileChooser(self)
- self.layout.addWidget(self.filechooser)
+ self.tqlayout.addWidget(self.filechooser)
buttonbox = qt.QHBox(self)
buttonbox.setSpacing(6)
- self.layout.addWidget(buttonbox)
+ self.tqlayout.addWidget(buttonbox)
savebutton = Button("Save", buttonbox)
qt.QObject.connect(savebutton, qt.SIGNAL("clicked()"), self, qt.SLOT("accept()"))
diff --git a/lib/kross/test/testobject.cpp b/lib/kross/test/testobject.cpp
index 884e7e37..eb687d02 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").arg(i) );
+ Kross::krossdebug(TQString("CALLED => TestObject::func1 i=%1").tqarg(i) );
return i;
}
void TestObject::func2(TQString s, int i)
{
- Kross::krossdebug(TQString("CALLED => TestObject::func2 s=%1 i=%2").arg(s).arg(i));
+ Kross::krossdebug(TQString("CALLED => TestObject::func2 s=%1 i=%2").tqarg(s).tqarg(i));
}
TQString TestObject::func3(TQString s, int i)
{
- Kross::krossdebug(TQString("CALLED => TestObject::func3 s=%1 i=%2").arg(s).arg(i));
+ Kross::krossdebug(TQString("CALLED => TestObject::func3 s=%1 i=%2").tqarg(s).tqarg(i));
return s;
}
const TQString& TestObject::func4(const TQString& s, int i) const
{
- Kross::krossdebug(TQString("CALLED => TestObject::func4 s=%1 i=%2").arg(s).arg(i));
+ Kross::krossdebug(TQString("CALLED => TestObject::func4 s=%1 i=%2").tqarg(s).tqarg(i));
return s;
}
@@ -83,13 +83,13 @@ void TestObject::testSlot2()
void TestObject::stdoutSlot(const TQString& s)
{
- Kross::krossdebug(TQString("stdout: %1").arg(s));
+ Kross::krossdebug(TQString("stdout: %1").tqarg(s));
//std::cout << "<stdout> " << s.latin1() << std::endl;
}
void TestObject::stderrSlot(const TQString& s)
{
- Kross::krossdebug(TQString("stderr: %1").arg(s));
+ Kross::krossdebug(TQString("stderr: %1").tqarg(s));
//std::cout << "<stderr> " << s.latin1() << std::endl;
}
diff --git a/lib/kross/test/testwindow.cpp b/lib/kross/test/testwindow.cpp
index ec2960b0..5aa33958 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").arg(file));
+ Kross::krossdebug(TQString("XML-file: %1").tqarg(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").arg(m_scriptcontainer->getException()->toString()) );
+ Kross::krossdebug( TQString("EXCEPTION => %1").tqarg(m_scriptcontainer->getException()->toString()) );
}
else {
TQString s = result ? result->toString() : TQString();
- Kross::krossdebug( TQString("DONE => %1").arg(s) );
+ Kross::krossdebug( TQString("DONE => %1").tqarg(s) );
}
}