diff options
Diffstat (limited to 'kivio/plugins/kiviotexttool/tool_text.h')
-rw-r--r-- | kivio/plugins/kiviotexttool/tool_text.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/kivio/plugins/kiviotexttool/tool_text.h b/kivio/plugins/kiviotexttool/tool_text.h index f5b0bb7b..1bc43bb9 100644 --- a/kivio/plugins/kiviotexttool/tool_text.h +++ b/kivio/plugins/kiviotexttool/tool_text.h @@ -22,8 +22,8 @@ #include "kivio_mousetool.h" #include <koffice_export.h> -class QMouseEvent; -class QCursor; +class TQMouseEvent; +class TQCursor; namespace Kivio { class MouseToolAction; @@ -36,17 +36,18 @@ class KoPoint; class KIVIO_EXPORT TextTool : public Kivio::MouseTool { Q_OBJECT + TQ_OBJECT public: - TextTool( KivioView* parent ); + TextTool( KivioView* tqparent ); ~TextTool(); - virtual bool processEvent(QEvent* e); + virtual bool processEvent(TQEvent* e); - void text(QRect); + void text(TQRect); public slots: virtual void setActivated(bool a); - virtual void applyToolAction(QPtrList<KivioStencil>* stencils); + virtual void applyToolAction(TQPtrList<KivioStencil>* stencils); virtual void applyToolAction(KivioStencil* stencil, const KoPoint& pos); protected slots: @@ -56,17 +57,17 @@ class KIVIO_EXPORT TextTool : public Kivio::MouseTool void operationDone(); protected: - void mousePress(QMouseEvent *); - void mouseMove(QMouseEvent *); - void mouseRelease(QMouseEvent *); + void mousePress(TQMouseEvent *); + void mouseMove(TQMouseEvent *); + void mouseRelease(TQMouseEvent *); - bool startRubberBanding(QMouseEvent*); - void continueRubberBanding(QMouseEvent *); - void endRubberBanding(QMouseEvent *); + bool startRubberBanding(TQMouseEvent*); + void continueRubberBanding(TQMouseEvent *); + void endRubberBanding(TQMouseEvent *); - QPoint m_startPoint, m_releasePoint; + TQPoint m_startPoint, m_releasePoint; // Text Tool Mode enum @@ -78,7 +79,7 @@ class KIVIO_EXPORT TextTool : public Kivio::MouseTool private: // Flag to indicate that we are drawing a rubber band int m_mode; - QCursor* m_pTextCursor; + TQCursor* m_pTextCursor; Kivio::MouseToolAction* m_textAction; bool m_permanent; }; |