diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
commit | 24857cad8e92c27bc7d7377549ae887adbeccc58 (patch) | |
tree | e8aa2577506c17c68286ec1b65ae31b89ea0556b /src/qdialarc.h | |
parent | ea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff) | |
download | ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip |
Convert to TDE R14 API
Diffstat (limited to 'src/qdialarc.h')
-rw-r--r-- | src/qdialarc.h | 40 |
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 |