summaryrefslogtreecommitdiffstats
path: root/lib/kross/main/mainmodule.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/main/mainmodule.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/main/mainmodule.h')
-rw-r--r--lib/kross/main/mainmodule.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/kross/main/mainmodule.h b/lib/kross/main/mainmodule.h
index 116e098d..bc7efc45 100644
--- a/lib/kross/main/mainmodule.h
+++ b/lib/kross/main/mainmodule.h
@@ -29,9 +29,9 @@
#include "../api/qtobject.h"
#include "../api/eventaction.h"
-#include <qstring.h>
-#include <qvariant.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqvariant.h>
+#include <tqobject.h>
#include <ksharedptr.h>
#include <kaction.h>
@@ -65,7 +65,7 @@ namespace Kross { namespace Api {
* the \a ScriptContainer instances are accessible
* by there \a ScriptContainer::getName() name.
*/
- explicit MainModule(const QString& name);
+ explicit MainModule(const TQString& name);
/**
* Destructor.
@@ -73,7 +73,7 @@ namespace Kross { namespace Api {
virtual ~MainModule();
/// \see Kross::Api::Object::getClassName()
- virtual const QString getClassName() const;
+ virtual const TQString getClassName() const;
/**
* \return true if the script throwed an exception
@@ -101,54 +101,54 @@ namespace Kross { namespace Api {
*
* \return true if child exists else false.
*/
- bool hasChild(const QString& name) const;
+ bool hasChild(const TQString& name) const;
#endif
/**
- * Add a Qt signal to the \a Module by creating
+ * Add a TQt signal to the \a Module by creating
* an \a EventSignal for it.
*
* \param name the name the \a EventSignal is
* reachable as
- * \param sender the QObject instance which
+ * \param sender the TQObject instance which
* is the sender of the \p signal
- * \param signal the Qt signal macro the \p sender
+ * \param signal the TQt signal macro the \p sender
* emits to call the \a EventSignal
* \return the newly added \a EventSignal instance
* which is now a child of this \a MainModule
*/
- EventSignal::Ptr addSignal(const QString& name, QObject* sender, QCString signal);
+ EventSignal::Ptr addSignal(const TQString& name, TQObject* sender, TQCString signal);
/**
- * Add a Qt slot to the \a Module by creating
+ * Add a TQt slot to the \a Module by creating
* an \a EventSlot for it.
*
* \param name the name the \a EventSlot is
* reachable as
- * \param receiver the QObject instance which
+ * \param receiver the TQObject instance which
* is the receiver of the \p signal
- * \param slot the Qt slot macro of the \p receiver
+ * \param slot the TQt slot macro of the \p receiver
* to invoke if the \a EventSlot got called.
* \return the newly added \a EventSlot instance
* which is now a child of this \a MainModule
*/
- EventSlot::Ptr addSlot(const QString& name, QObject* receiver, QCString slot);
+ EventSlot::Ptr addSlot(const TQString& name, TQObject* receiver, TQCString slot);
/**
- * Add a \a QObject to the eventcollection. All
- * signals and slots the QObject has will be
+ * Add a \a TQObject to the eventcollection. All
+ * signals and slots the TQObject has will be
* added to a new \a EventCollection instance
* which is child of this \a EventCollection
* instance.
*
- * \param object the QObject instance that should
+ * \param object the TQObject instance that should
* be added to this \a MainModule
- * \param name the name under which this QObject instance
+ * \param name the name under which this TQObject instance
* should be registered as
* \return the newly added \a QtObject instance
* which is now a child of this \a MainModule
*/
- QtObject::Ptr addQObject(QObject* object, const QString& name = QString::null);
+ QtObject::Ptr addTQObject(TQObject* object, const TQString& name = TQString());
/**
* Add a \a KAction to the eventcollection. The
@@ -163,12 +163,12 @@ namespace Kross { namespace Api {
*
* \todo check \a name dox.
*/
- EventAction::Ptr addKAction(KAction* action, const QString& name = QString::null);
+ EventAction::Ptr addKAction(KAction* action, const TQString& name = TQString());
- //typedef QValueList<Callable::Ptr> EventList;
+ //typedef TQValueList<Callable::Ptr> EventList;
//EventList getEvents();
- //const QString& serializeToXML();
- //void unserializeFromXML(const QString& xml);
+ //const TQString& serializeToXML();
+ //void unserializeFromXML(const TQString& xml);
private:
/// Private d-pointer class.