summaryrefslogtreecommitdiffstats
path: root/lib/kross/api/list.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kross/api/list.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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];
}