summaryrefslogtreecommitdiffstats
path: root/kivio/plugins/kivioconnectortool/tool_connector.h
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/plugins/kivioconnectortool/tool_connector.h')
-rw-r--r--kivio/plugins/kivioconnectortool/tool_connector.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/kivio/plugins/kivioconnectortool/tool_connector.h b/kivio/plugins/kivioconnectortool/tool_connector.h
index d0bb8b01..7dd1462b 100644
--- a/kivio/plugins/kivioconnectortool/tool_connector.h
+++ b/kivio/plugins/kivioconnectortool/tool_connector.h
@@ -23,8 +23,8 @@
#include "kivio_mousetool.h"
#include <KoPoint.h>
-class QMouseEvent;
-class QCursor;
+class TQMouseEvent;
+class TQCursor;
namespace Kivio {
class MouseToolAction;
@@ -38,13 +38,14 @@ class KivioCustomDragData;
class ConnectorTool : public Kivio::MouseTool
{
Q_OBJECT
+ TQ_OBJECT
public:
- ConnectorTool( KivioView* parent );
+ ConnectorTool( KivioView* tqparent );
~ConnectorTool();
- virtual bool processEvent(QEvent* e);
+ virtual bool processEvent(TQEvent* e);
- void connector(QRect);
+ void connector(TQRect);
public slots:
void setActivated(bool a);
@@ -59,15 +60,15 @@ class ConnectorTool : 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;
// Connector Tool Mode
enum
@@ -84,8 +85,8 @@ class ConnectorTool : public Kivio::MouseTool
private:
int m_mode; // Flag to indicate that we are drawing a rubber band
int m_type; // Type of connector
- QCursor* m_pConnectorCursor1;
- QCursor* m_pConnectorCursor2;
+ TQCursor* m_pConnectorCursor1;
+ TQCursor* m_pConnectorCursor2;
Kivio1DStencil* m_pStencil;
KoPoint startPoint;
KivioCustomDragData* m_pDragData;