summaryrefslogtreecommitdiffstats
path: root/krita/ui/kcurve.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kcurve.h')
-rw-r--r--krita/ui/kcurve.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/krita/ui/kcurve.h b/krita/ui/kcurve.h
index 412efe5b..820b5f5a 100644
--- a/krita/ui/kcurve.h
+++ b/krita/ui/kcurve.h
@@ -19,25 +19,26 @@
#ifndef KCURVE_H
#define KCURVE_H
-// Qt includes.
+// TQt includes.
-#include <qwidget.h>
-#include <qcolor.h>
-#include <qpair.h>
-#include <qsortedlist.h>
+#include <tqwidget.h>
+#include <tqcolor.h>
+#include <tqpair.h>
+#include <tqsortedlist.h>
#include <koffice_export.h>
-class KRITAUI_EXPORT KCurve : public QWidget
+class KRITAUI_EXPORT KCurve : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KCurve(QWidget *parent = 0, const char *name = 0, WFlags f = 0);
+ KCurve(TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0);
virtual ~KCurve();
void reset(void);
- void setCurveGuide(QColor color);
- void setPixmap(QPixmap pix);
+ void setCurveGuide(TQColor color);
+ void setPixmap(TQPixmap pix);
signals:
@@ -46,33 +47,33 @@ signals:
protected:
- void keyPressEvent(QKeyEvent *);
- void paintEvent(QPaintEvent *);
- void mousePressEvent (QMouseEvent * e);
- void mouseReleaseEvent ( QMouseEvent * e );
- void mouseMoveEvent ( QMouseEvent * e );
- void leaveEvent ( QEvent * );
+ void keyPressEvent(TQKeyEvent *);
+ void paintEvent(TQPaintEvent *);
+ void mousePressEvent (TQMouseEvent * e);
+ void mouseReleaseEvent ( TQMouseEvent * e );
+ void mouseMoveEvent ( TQMouseEvent * e );
+ void leaveEvent ( TQEvent * );
public:
- static double getCurveValue(QPtrList<QPair<double,double> > &curve, double x);
+ static double getCurveValue(TQPtrList<TQPair<double,double> > &curve, double x);
double getCurveValue(double x);
- QPtrList<QPair<double,double> > getCurve();
- void setCurve(QPtrList<QPair<double,double> >inlist);
+ TQPtrList<TQPair<double,double> > getCurve();
+ void setCurve(TQPtrList<TQPair<double,double> >inlist);
private:
double m_leftmost;
double m_rightmost;
- QPair<double,double> *m_grab_point;
+ TQPair<double,double> *m_grab_point;
bool m_dragging;
double m_grabOffsetX;
double m_grabOffsetY;
bool m_readOnlyMode;
bool m_guideVisible;
- QColor m_colorGuide;
- QPtrList<QPair<double,double> > m_points;
- QPixmap *m_pix;
+ TQColor m_colorGuide;
+ TQPtrList<TQPair<double,double> > m_points;
+ TQPixmap *m_pix;
};