diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/utility/qpevents.h | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/utility/qpevents.h')
-rw-r--r-- | quanta/utility/qpevents.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/quanta/utility/qpevents.h b/quanta/utility/qpevents.h index 373ae089..31c05235 100644 --- a/quanta/utility/qpevents.h +++ b/quanta/utility/qpevents.h @@ -14,8 +14,8 @@ * * ***************************************************************************/ -#ifndef QPEVENTS_H -#define QPEVENTS_H +#ifndef TQPEVENTS_H +#define TQPEVENTS_H #include <tqobject.h> @@ -50,17 +50,18 @@ after_project_remove, after_commit */ typedef TQMap<TQString, TQValueList<EventAction> > EventActions; -class QPEvents : public QObject +class TQPEvents : public TQObject { Q_OBJECT + TQ_OBJECT public: - static QPEvents* const ref(TQObject *parent = 0L) + static TQPEvents* const ref(TQObject *tqparent = 0L) { - static QPEvents *m_ref; - if (!m_ref) m_ref = new QPEvents(parent); + static TQPEvents *m_ref; + if (!m_ref) m_ref = new TQPEvents(tqparent); return m_ref; } - ~QPEvents(); + ~TQPEvents(); TQString fullEventName(const TQString &name); TQString fullActionName(const TQString &name); TQString eventName(const TQString &fullName); @@ -73,7 +74,7 @@ public slots: void slotEventHappened(const TQString& name, const TQString& argument1, const TQString& argument2); private: - QPEvents(TQObject *parent = 0, const char *name = 0); + TQPEvents(TQObject *tqparent = 0, const char *name = 0); /** Calls the action associated with an event. Returns true if the call succeeded, false otherwise. The call might fail if: - the action type is unknown |