summaryrefslogtreecommitdiffstats
path: root/lib/kopainter/koColorSlider.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kopainter/koColorSlider.h')
-rw-r--r--lib/kopainter/koColorSlider.h69
1 files changed, 36 insertions, 33 deletions
diff --git a/lib/kopainter/koColorSlider.h b/lib/kopainter/koColorSlider.h
index 5c520ba8a..e556bcf28 100644
--- a/lib/kopainter/koColorSlider.h
+++ b/lib/kopainter/koColorSlider.h
@@ -20,93 +20,96 @@
#ifndef __ko_ColorSlider_h__
#define __ko_ColorSlider_h__
-#include <qframe.h>
-#include <qpoint.h>
-#include <qimage.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqpoint.h>
+#include <tqimage.h>
+#include <tqwidget.h>
#include <kpixmap.h>
#include <koffice_export.h>
class SliderWidget;
-class KOPAINTER_EXPORT KoColorFrame : public QFrame
+class KOPAINTER_EXPORT KoColorFrame : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoColorFrame(QWidget *parent = 0L);
+ KoColorFrame(TQWidget *tqparent = 0L);
- const QColor colorAt(const QPoint &p);
+ const TQColor colorAt(const TQPoint &p);
protected:
- void drawContents(QPainter *p);
- void mousePressEvent(QMouseEvent *e);
- void mouseMoveEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
+ void drawContents(TQPainter *p);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
public slots:
- void slotSetColor1(const QColor &c);
- void slotSetColor2(const QColor &c);
+ void slotSetColor1(const TQColor &c);
+ void slotSetColor2(const TQColor &c);
signals:
- void clicked(const QPoint &p);
- void colorSelected(const QColor &c);
+ void clicked(const TQPoint &p);
+ void colorSelected(const TQColor &c);
protected:
- QColor mC1;
- QColor mC2;
+ TQColor mC1;
+ TQColor mC2;
KPixmap mPixmap;
- QImage mImage;
+ TQImage mImage;
bool mColorChanged;
bool mPixChanged;
bool mDragging;
};
-class KOPAINTER_EXPORT KoSliderWidget : public QWidget
+class KOPAINTER_EXPORT KoSliderWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoSliderWidget(QWidget *parent = 0L);
+ KoSliderWidget(TQWidget *tqparent = 0L);
protected:
- void mousePressEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
- void mouseMoveEvent(QMouseEvent *e);
- void paintEvent(QPaintEvent *);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
+ void paintEvent(TQPaintEvent *);
signals:
void positionChanged(int);
protected:
bool mDragging;
- QPoint mPos;
+ TQPoint mPos;
};
-class KOPAINTER_EXPORT KoColorSlider : public QWidget
+class KOPAINTER_EXPORT KoColorSlider : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KoColorSlider(QWidget *parent = 0L);
+ KoColorSlider(TQWidget *tqparent = 0L);
virtual ~KoColorSlider();
int minValue();
int maxValue();
protected:
- void resizeEvent(QResizeEvent *);
- void mousePressEvent(QMouseEvent *);
+ void resizeEvent(TQResizeEvent *);
+ void mousePressEvent(TQMouseEvent *);
public slots:
- void slotSetColor1(const QColor &c);
- void slotSetColor2(const QColor &c);
+ void slotSetColor1(const TQColor &c);
+ void slotSetColor2(const TQColor &c);
void slotSetValue(int value);
void slotSetRange(int min, int max);
protected slots:
void slotSliderMoved(int x);
- void slotFrameClicked(const QPoint &p);
+ void slotFrameClicked(const TQPoint &p);
signals:
- void colorSelected(const QColor &c);
+ void colorSelected(const TQColor &c);
void valueChanged(int value);
protected: