From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- lib/kross/api/object.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lib/kross/api/object.h') 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 -#include -#include -#include -//#include +#include +#include +#include +#include +//#include #include #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 arguments); + virtual Object::Ptr call(const TQString& name, KSharedPtr 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 inline T* Object::fromObject(Object::Ptr object) { T* t = (T*) object.data(); if(! t) - throw KSharedPtr( new Exception(QString("Object \"%1\" invalid.").arg(object ? object->getClassName() : "")) ); + throw KSharedPtr( new Exception(TQString("Object \"%1\" invalid.").tqarg(object ? object->getClassName() : "")) ); return t; } -- cgit v1.2.1