summaryrefslogtreecommitdiffstats
path: root/lib/kross/api/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kross/api/list.cpp')
-rw-r--r--lib/kross/api/list.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kross/api/list.cpp b/lib/kross/api/list.cpp
index ad901e5e..3d894116 100644
--- a/lib/kross/api/list.cpp
+++ b/lib/kross/api/list.cpp
@@ -22,8 +22,8 @@
using namespace Kross::Api;
-List::List(QValueList<Object::Ptr> value)
- : Value< List, QValueList<Object::Ptr> >(value)
+List::List(TQValueList<Object::Ptr> value)
+ : Value< List, TQValueList<Object::Ptr> >(value)
{
}
@@ -31,28 +31,28 @@ List::~List()
{
}
-const QString List::getClassName() const
+const TQString List::getClassName() const
{
return "Kross::Api::List";
}
-const QString List::toString()
+const TQString List::toString()
{
- QString s = "[";
- QValueList<Object::Ptr> list = getValue();
- for(QValueList<Object::Ptr>::Iterator it = list.begin(); it != list.end(); ++it)
+ TQString s = "[";
+ TQValueList<Object::Ptr> list = getValue();
+ for(TQValueList<Object::Ptr>::Iterator it = list.begin(); it != list.end(); ++it)
s += "'" + (*it)->toString() + "', ";
return (s.endsWith(", ") ? s.left(s.length() - 2) : s) + "]";
}
Object::Ptr List::item(uint idx, Object* defaultobject)
{
- QValueList<Object::Ptr>& list = getValue();
+ TQValueList<Object::Ptr>& list = getValue();
if(idx >= list.count()) {
if(defaultobject)
return defaultobject;
- krossdebug( QString("List::item index=%1 is out of bounds. Raising TypeException.").arg(idx) );
- throw Exception::Ptr( new Exception(QString("List-index %1 out of bounds.").arg(idx)) );
+ krossdebug( TQString("List::item index=%1 is out of bounds. Raising TypeException.").tqarg(idx) );
+ throw Exception::Ptr( new Exception(TQString("List-index %1 out of bounds.").tqarg(idx)) );
}
return list[idx];
}