summaryrefslogtreecommitdiffstats
path: root/lib/kross/api/list.h
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.h
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.h')
-rw-r--r--lib/kross/api/list.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/kross/api/list.h b/lib/kross/api/list.h
index d74246a0..2620c688 100644
--- a/lib/kross/api/list.h
+++ b/lib/kross/api/list.h
@@ -20,9 +20,9 @@
#ifndef KROSS_API_LIST_H
#define KROSS_API_LIST_H
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qintdict.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqintdict.h>
#include "object.h"
#include "value.h"
@@ -33,9 +33,9 @@ namespace Kross { namespace Api {
* The List class implementates \a Value to handle
* lists and collections.
*/
- class List : public Value< List, QValueList<Object::Ptr> >
+ class List : public Value< List, TQValueList<Object::Ptr> >
{
- friend class Value< List, QValueList<Object::Ptr> >;
+ friend class Value< List, TQValueList<Object::Ptr> >;
public:
/**
@@ -44,10 +44,10 @@ namespace Kross { namespace Api {
typedef KSharedPtr<List> Ptr;
/*
- operator QStringList () {
- //QValueList<Object::Ptr> getValue()
+ operator TQStringList () {
+ //TQValueList<Object::Ptr> getValue()
krossdebug("999999999999 ...........................");
- return QStringList();
+ return TQStringList();
}
*/
@@ -57,7 +57,7 @@ namespace Kross { namespace Api {
* \param value The list of \a Object instances this
* list has initialy.
*/
- List(QValueList<Object::Ptr> value = QValueList<Object::Ptr>());
+ List(TQValueList<Object::Ptr> value = TQValueList<Object::Ptr>());
/**
* Destructor.
@@ -67,21 +67,21 @@ namespace Kross { namespace Api {
/**
* See \see Kross::Api::Object::getClassName()
*/
- virtual const QString getClassName() const;
+ virtual const TQString getClassName() const;
/**
* \return a string representation of the whole list.
*
* \see Kross::Api::Object::toString()
*/
- virtual const QString toString();
+ virtual const TQString toString();
/**
* Return the \a Object with defined index from the
- * QValueList this list holds.
+ * TQValueList this list holds.
*
* \throw TypeException If index is out of bounds.
- * \param idx The QValueList-index.
+ * \param idx The TQValueList-index.
* \param defaultobject The default \a Object which should
* be used if there exists no item with such an
* index. This \a Object instance will be returned
@@ -92,7 +92,7 @@ namespace Kross { namespace Api {
Object::Ptr item(uint idx, Object* defaultobject = 0);
/**
- * Return the number of items in the QValueList this
+ * Return the number of items in the TQValueList this
* list holds.
*
* \return The number of items.
@@ -120,20 +120,20 @@ namespace Kross { namespace Api {
{
public:
ListT() : List() {}
- ListT(QValueList<OBJECT> values) : List(values) {}
+ ListT(TQValueList<OBJECT> values) : List(values) {}
template< typename TYPE >
- ListT(QValueList<TYPE> values) : List()
+ ListT(TQValueList<TYPE> values) : List()
{
- QValueListIterator<TYPE> it(values.begin()), end(values.end());
+ TQValueListIterator<TYPE> it(values.begin()), end(values.end());
for(; it != end; ++it)
this->append( new OBJECT(*it) );
}
template< typename TYPE >
- ListT(QIntDict<TYPE> values) : List()
+ ListT(TQIntDict<TYPE> values) : List()
{
- QIntDictIterator<TYPE> it( values );
+ TQIntDictIterator<TYPE> it( values );
TYPE *t;
while( (t = it.current()) != 0 ) {
this->append( new OBJECT(t) );
@@ -142,9 +142,9 @@ namespace Kross { namespace Api {
}
template< typename TYPE >
- ListT(const QPtrList<TYPE> values) : List()
+ ListT(const TQPtrList<TYPE> values) : List()
{
- QPtrListIterator<TYPE> it(values);
+ TQPtrListIterator<TYPE> it(values);
TYPE *t;
while( (t = it.current()) != 0 ) {
this->append( new OBJECT(t) );