diff options
Diffstat (limited to 'karbon/widgets/vgradientwidget.h')
-rw-r--r-- | karbon/widgets/vgradientwidget.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/karbon/widgets/vgradientwidget.h b/karbon/widgets/vgradientwidget.h index 76f7472d..236e98f9 100644 --- a/karbon/widgets/vgradientwidget.h +++ b/karbon/widgets/vgradientwidget.h @@ -20,41 +20,42 @@ #ifndef _VGRADIENTWIDGET_H_ #define _VGRADIENTWIDGET_H_ -#include <qwidget.h> +#include <tqwidget.h> #include <koffice_export.h> class VGradient; -class QPainter; +class TQPainter; class VColor; -class KARBONBASE_EXPORT VGradientWidget : public QWidget +class KARBONBASE_EXPORT VGradientWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - VGradientWidget( VGradient& gradient, QWidget* parent = 0L, const char* name = 0L ); + VGradientWidget( VGradient& gradient, TQWidget* tqparent = 0L, const char* name = 0L ); ~VGradientWidget(); - virtual void paintEvent( QPaintEvent* ); + virtual void paintEvent( TQPaintEvent* ); signals: void changed(); protected: /** mouse events... For color stops manipulation */ - void mousePressEvent( QMouseEvent* ); - void mouseReleaseEvent( QMouseEvent* ); - void mouseDoubleClickEvent( QMouseEvent* ); - void mouseMoveEvent( QMouseEvent* ); + void mousePressEvent( TQMouseEvent* ); + void mouseReleaseEvent( TQMouseEvent* ); + void mouseDoubleClickEvent( TQMouseEvent* ); + void mouseMoveEvent( TQMouseEvent* ); - void paintColorStop( QPainter& p, int x, VColor& color ); - void paintMidPoint( QPainter& p, int x ); + void paintColorStop( TQPainter& p, int x, VColor& color ); + void paintMidPoint( TQPainter& p, int x ); /** The gradient to modify. */ VGradient* m_gradient; /** The point to modify. */ unsigned int currentPoint; - QRect m_pntArea; + TQRect m_pntArea; }; // VGradientWidget #endif /* _VGRADIENTWIDGET_H_ */ |