summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoContainerHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoContainerHandler.h')
-rw-r--r--lib/kofficecore/KoContainerHandler.h38
1 files changed, 21 insertions, 17 deletions
diff --git a/lib/kofficecore/KoContainerHandler.h b/lib/kofficecore/KoContainerHandler.h
index d34d0500..0ea9ba35 100644
--- a/lib/kofficecore/KoContainerHandler.h
+++ b/lib/kofficecore/KoContainerHandler.h
@@ -20,10 +20,10 @@
#ifndef HANDLER_H
#define HANDLER_H
-#include <qobject.h>
+#include <tqobject.h>
#include <KoDocumentChild.h>
-class QWMatrix;
+class TQWMatrix;
class KoView;
class KoPartResizeHandlerPrivate;
@@ -40,17 +40,18 @@ class KoPartMoveHandlerPrivate;
* This design pattern helps you to keep your event filters
* and your mousePressEvent, mouseMoveEvent etc. methods clean.
*/
-class KOFFICECORE_EXPORT KoEventHandler : public QObject
+class KOFFICECORE_EXPORT KoEventHandler : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoEventHandler( QObject* target );
+ KoEventHandler( TQObject* target );
~KoEventHandler();
- QObject* target();
+ TQObject* target();
private:
- QObject* m_target;
+ TQObject* m_target;
};
/**
@@ -60,14 +61,15 @@ private:
class KoPartResizeHandler : public KoEventHandler
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoPartResizeHandler( QWidget* widget, const QWMatrix& matrix, KoView* view, KoChild* child,
- KoChild::Gadget gadget, const QPoint& point );
+ KoPartResizeHandler( TQWidget* widget, const TQWMatrix& matrix, KoView* view, KoChild* child,
+ KoChild::Gadget gadget, const TQPoint& point );
~KoPartResizeHandler();
protected:
- void repaint(QRegion &rgn);
- bool eventFilter( QObject*, QEvent* );
+ void tqrepaint(TQRegion &rgn);
+ bool eventFilter( TQObject*, TQEvent* );
private:
KoPartResizeHandlerPrivate *d;
@@ -80,13 +82,14 @@ private:
class KoPartMoveHandler : public KoEventHandler
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoPartMoveHandler( QWidget* widget, const QWMatrix& matrix, KoView* view, KoChild* child,
- const QPoint& point );
+ KoPartMoveHandler( TQWidget* widget, const TQWMatrix& matrix, KoView* view, KoChild* child,
+ const TQPoint& point );
~KoPartMoveHandler();
protected:
- bool eventFilter( QObject*, QEvent* );
+ bool eventFilter( TQObject*, TQEvent* );
private:
KoPartMoveHandlerPrivate *d;
@@ -109,8 +112,9 @@ private:
class KOFFICECORE_EXPORT KoContainerHandler : public KoEventHandler
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoContainerHandler( KoView* view, QWidget* widget );
+ KoContainerHandler( KoView* view, TQWidget* widget );
~KoContainerHandler();
signals:
@@ -118,7 +122,7 @@ signals:
* Emitted if the user wants to open the popup menu for some
* child object.
*/
- void popupMenu( KoChild*, const QPoint& global_pos );
+ void popupMenu( KoChild*, const TQPoint& global_pos );
/**
* Emitted if the user pressed the delete key whilst a child was selected
@@ -126,11 +130,11 @@ signals:
void deleteChild( KoChild* );
protected:
- bool eventFilter( QObject*, QEvent* );
+ bool eventFilter( TQObject*, TQEvent* );
private:
/// This is a little helper function to get rid of some duplicated code
- KoChild *child(KoChild::Gadget &gadget, QPoint &pos, const QMouseEvent *ev);
+ KoChild *child(KoChild::Gadget &gadget, TQPoint &pos, const TQMouseEvent *ev);
KoView* m_view;
};