diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kross/api/object.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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/object.h')
-rw-r--r-- | lib/kross/api/object.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/kross/api/object.h b/lib/kross/api/object.h index 3c86ca4b..87bd2132 100644 --- a/lib/kross/api/object.h +++ b/lib/kross/api/object.h @@ -20,11 +20,11 @@ #ifndef KROSS_API_OBJECT_H #define KROSS_API_OBJECT_H -#include <qstring.h> -#include <qvaluelist.h> -#include <qmap.h> -#include <qvariant.h> -//#include <qobject.h> +#include <tqstring.h> +#include <tqvaluelist.h> +#include <tqmap.h> +#include <tqvariant.h> +//#include <tqobject.h> #include <ksharedptr.h> #include "../main/krossconfig.h" @@ -40,7 +40,7 @@ namespace Kross { namespace Api { * * The Object class is used as base class to provide * common functionality. It's similar to what we know - * in Python as PyObject or in Qt as QObject. + * in Python as PyObject or in TQt as TQObject. * * Inherited from e.g. \a Value, \a Module and \a Class . * @@ -73,14 +73,14 @@ namespace Kross { namespace Api { * * \return The name of this class. */ - virtual const QString getClassName() const = 0; + virtual const TQString getClassName() const = 0; /** * \return a string representation of the object or * it's content. This method is mainly used for * debugging and testing purposes. */ - virtual const QString toString(); + virtual const TQString toString(); /** * Pass a call to the object and evaluated it recursive @@ -99,14 +99,14 @@ namespace Kross { namespace Api { * \return The call-result as \a Object::Ptr instance or * NULL if the call has no result. */ - virtual Object::Ptr call(const QString& name, KSharedPtr<List> arguments); + virtual Object::Ptr call(const TQString& name, KSharedPtr<List> arguments); /** * Return a list of supported callable objects. * * \return List of supported calls. */ - virtual QStringList getCalls() { return QStringList(); } + virtual TQStringList getCalls() { return TQStringList(); } //FIXME replace function with getChildren() functionality ? /** @@ -142,7 +142,7 @@ template<class T> inline T* Object::fromObject(Object::Ptr object) { T* t = (T*) object.data(); if(! t) - throw KSharedPtr<Exception>( new Exception(QString("Object \"%1\" invalid.").arg(object ? object->getClassName() : "")) ); + throw KSharedPtr<Exception>( new Exception(TQString("Object \"%1\" invalid.").tqarg(object ? object->getClassName() : "")) ); return t; } |