summaryrefslogtreecommitdiffstats
path: root/src/qdialarc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdialarc.h')
-rw-r--r--src/qdialarc.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/qdialarc.h b/src/qdialarc.h
index a5db935..42c254e 100644
--- a/src/qdialarc.h
+++ b/src/qdialarc.h
@@ -15,20 +15,20 @@
* *
***************************************************************************/
-#ifndef QDIALARC_H
-#define QDIALARC_H
+#ifndef TQDIALARC_H
+#define TQDIALARC_H
-#include <qwidget.h>
+#include <ntqwidget.h>
/**
*@author Miguel Novas
*/
-class QDialArc : public QWidget {
+class TQDialArc : public TQWidget {
Q_OBJECT
public:
- QDialArc(QWidget *parent=0, const char *name=0);
- ~QDialArc();
+ TQDialArc(TQWidget *parent=0, const char *name=0);
+ ~TQDialArc();
void setValue (double value);
void setValueMin (double value);
@@ -46,19 +46,19 @@ public:
void setShowMarks (bool flag);
- void setColorMax(const QColor &color);
- void setColorMid(const QColor &color);
- void setColorMin(const QColor &color);
- void setColorRanges(const QColor &min,const QColor &mid, const QColor &max);
+ void setColorMax(const TQColor &color);
+ void setColorMid(const TQColor &color);
+ void setColorMin(const TQColor &color);
+ void setColorRanges(const TQColor &min,const TQColor &mid, const TQColor &max);
- void setArrowColor(const QColor &color);
+ void setArrowColor(const TQColor &color);
inline double getValue() { return val; }
protected:
- void resizeEvent( QResizeEvent *);
- void paintEvent ( QPaintEvent *);
+ void resizeEvent( TQResizeEvent *);
+ void paintEvent ( TQPaintEvent *);
private:
@@ -73,17 +73,17 @@ private:
int centerx,centery;
bool fCalcParams;
- QColor arrowColor;
- QColor colorMin;
- QColor colorMid;
- QColor colorMax;
+ TQColor arrowColor;
+ TQColor colorMin;
+ TQColor colorMid;
+ TQColor colorMax;
bool fShowMarks;
void calcParams();
void paramsChanged();
- void drawMarks(QPainter *p,int l1,int l2);
- void drawArc(QPainter *p,int l1,int l2,const QColor &color);
- void drawArrow(QPainter *p, double value);
+ void drawMarks(TQPainter *p,int l1,int l2);
+ void drawArc(TQPainter *p,int l1,int l2,const TQColor &color);
+ void drawArrow(TQPainter *p, double value);
};
#endif