diff options
Diffstat (limited to 'kdevdesigner/designer/sizehandle.h')
-rw-r--r-- | kdevdesigner/designer/sizehandle.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kdevdesigner/designer/sizehandle.h b/kdevdesigner/designer/sizehandle.h index 8d53977c..0603f1b2 100644 --- a/kdevdesigner/designer/sizehandle.h +++ b/kdevdesigner/designer/sizehandle.h @@ -27,9 +27,9 @@ #ifndef SIZEHANDLE_H #define SIZEHANDLE_H -#include <qwidget.h> -#include <qintdict.h> -#include <qptrdict.h> +#include <tqwidget.h> +#include <tqintdict.h> +#include <tqptrdict.h> class QMouseEvent; class FormWindow; @@ -44,29 +44,29 @@ public: enum Direction { LeftTop, Top, RightTop, Right, RightBottom, Bottom, LeftBottom, Left }; SizeHandle( FormWindow *parent, Direction d, WidgetSelection *s ); - void setWidget( QWidget *w ); + void setWidget( TQWidget *w ); void setActive( bool a ); void updateCursor(); void setEnabled( bool ) {} protected: - void paintEvent( QPaintEvent *e ); - void mousePressEvent( QMouseEvent *e ); - void mouseMoveEvent( QMouseEvent *e ); - void mouseReleaseEvent( QMouseEvent *e ); + void paintEvent( TQPaintEvent *e ); + void mousePressEvent( TQMouseEvent *e ); + void mouseMoveEvent( TQMouseEvent *e ); + void mouseReleaseEvent( TQMouseEvent *e ); private: - void trySetGeometry( QWidget *w, int x, int y, int width, int height ); - void tryResize( QWidget *w, int width, int height ); + void trySetGeometry( TQWidget *w, int x, int y, int width, int height ); + void tryResize( TQWidget *w, int width, int height ); private: - QWidget *widget; + TQWidget *widget; Direction dir; - QPoint oldPressPos; + TQPoint oldPressPos; FormWindow *formWindow; WidgetSelection *sel; - QRect geom, origGeom; + TQRect geom, origGeom; bool active; }; @@ -74,9 +74,9 @@ private: class WidgetSelection { public: - WidgetSelection( FormWindow *parent, QPtrDict<WidgetSelection> *selDict ); + WidgetSelection( FormWindow *parent, TQPtrDict<WidgetSelection> *selDict ); - void setWidget( QWidget *w, bool updateDict = TRUE ); + void setWidget( TQWidget *w, bool updateDict = TRUE ); bool isUsed() const; void updateGeometry(); @@ -84,13 +84,13 @@ public: void show(); void update(); - QWidget *widget() const; + TQWidget *widget() const; protected: - QIntDict<SizeHandle> handles; - QWidget *wid; + TQIntDict<SizeHandle> handles; + TQWidget *wid; FormWindow *formWindow; - QPtrDict<WidgetSelection> *selectionDict; + TQPtrDict<WidgetSelection> *selectionDict; }; |