summaryrefslogtreecommitdiffstats
path: root/k9author/k9canvasselection.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /k9author/k9canvasselection.h
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9author/k9canvasselection.h')
-rw-r--r--k9author/k9canvasselection.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/k9author/k9canvasselection.h b/k9author/k9canvasselection.h
index e5ff0fb..35d0179 100644
--- a/k9author/k9canvasselection.h
+++ b/k9author/k9canvasselection.h
@@ -13,16 +13,16 @@
#define K9CANVASSELECTION_H
#include "k9menueditor.h"
-#include <qcanvas.h>
+#include <tqcanvas.h>
/**
@author Jean-Michel PETIT <[email protected]>
*/
class k9CanvasSelection;
-class k9CanvasSelectionRedim : public QCanvasRectangle {
+class k9CanvasSelectionRedim : public TQCanvasRectangle {
public:
enum ePosition { RedimTopLeft=2002,RedimTopMiddle=2003,RedimTopRight=2004,RedimMiddleLeft=2005,RedimBottomLeft=2006,RedimBottomMiddle=2007,RedimBottomRight=2008,RedimMiddleRight=2009} ;
- k9CanvasSelectionRedim (ePosition _position,int _x,int _y,int _w,int _h,QCanvas *canvas,k9CanvasSelection *selection);
+ k9CanvasSelectionRedim (ePosition _position,int _x,int _y,int _w,int _h,TQCanvas *canvas,k9CanvasSelection *selection);
void updateSelection();
virtual int rtti() const {
return m_position;
@@ -35,21 +35,22 @@ private:
};
-class k9CanvasSelection : public QObject
+class k9CanvasSelection : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
k9CanvasSelection(k9MenuEditor *_editor);
~k9CanvasSelection();
- void setPosition (QPoint _p);
+ void setPosition (TQPoint _p);
void release();
void hide();
void hideRedim();
void showRedim();
void show();
void setSize(int _w,int _h);
- QRect getRect();
+ TQRect getRect();
void moveBy(int _x,int _y);
int getWidth();
void setWidth(int _w);
@@ -64,7 +65,7 @@ public:
private:
k9MenuEditor *m_editor;
- QCanvasRectangle *m_rect;
+ TQCanvasRectangle *m_rect;
k9CanvasSelectionRedim *m_lt,*m_mt,*m_rt,*m_lm,*m_rm,*m_lb,*m_mb,*m_rb;
};