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/test/testobject.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/test/testobject.h')
-rw-r--r-- | lib/kross/test/testobject.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/lib/kross/test/testobject.h b/lib/kross/test/testobject.h index 011b7e54..5a04d9dc 100644 --- a/lib/kross/test/testobject.h +++ b/lib/kross/test/testobject.h @@ -22,43 +22,44 @@ #include "../main/scriptcontainer.h" -#include <qobject.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqstring.h> -class TestObject : public QObject +class TestObject : public TQObject { Q_OBJECT + TQ_OBJECT - Q_PROPERTY(QString testProperty READ testProperty WRITE setTestProperty) + TQ_PROPERTY(TQString testProperty READ testProperty WRITE setTestProperty) public: TestObject(); - TestObject(QObject* parent, Kross::Api::ScriptContainer::Ptr scriptcontainer); + TestObject(TQObject* tqparent, Kross::Api::ScriptContainer::Ptr scriptcontainer); ~TestObject(); uint func1(uint); - void func2(QString, int); - QString func3(QString, int); - const QString& func4(const QString&, int) const; + void func2(TQString, int); + TQString func3(TQString, int); + const TQString& func4(const TQString&, int) const; - QString testProperty() const { return m_prop; } - void setTestProperty(QString prop) { m_prop = prop; } + TQString testProperty() const { return m_prop; } + void setTestProperty(TQString prop) { m_prop = prop; } signals: void testSignal(); - void testSignalString(const QString&); - void stdoutSignal(const QString&); - void stderrSignal(const QString&); + void testSignalString(const TQString&); + void stdoutSignal(const TQString&); + void stderrSignal(const TQString&); public slots: void testSlot(); void testSlot2(); - void stdoutSlot(const QString&); - void stderrSlot(const QString&); + void stdoutSlot(const TQString&); + void stderrSlot(const TQString&); - QObject* self() { return this; } + TQObject* self() { return this; } private: - QString m_prop; + TQString m_prop; }; #endif |