summaryrefslogtreecommitdiffstats
path: root/src/qbarmeter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:59:06 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:59:06 -0500
commit24857cad8e92c27bc7d7377549ae887adbeccc58 (patch)
treee8aa2577506c17c68286ec1b65ae31b89ea0556b /src/qbarmeter.cpp
parentea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff)
downloadksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz
ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip
Convert to TDE R14 API
Diffstat (limited to 'src/qbarmeter.cpp')
-rw-r--r--src/qbarmeter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/qbarmeter.cpp b/src/qbarmeter.cpp
index bb0d400..472618b 100644
--- a/src/qbarmeter.cpp
+++ b/src/qbarmeter.cpp
@@ -17,7 +17,7 @@
#include "qbarmeter.h"
-QBarMeter::QBarMeter(QWidget *parent, const char *name): QWidget(parent,name)
+TQBarMeter::TQBarMeter(TQWidget *parent, const char *name): TQWidget(parent,name)
{
count = 1;
val[0] = 0;
@@ -30,17 +30,17 @@ QBarMeter::QBarMeter(QWidget *parent, const char *name): QWidget(parent,name)
}
-QBarMeter::~QBarMeter()
+TQBarMeter::~TQBarMeter()
{
}
-void QBarMeter::setDirection(Direction newDir)
+void TQBarMeter::setDirection(Direction newDir)
{
dir= newDir;
update();
}
-void QBarMeter::useValueMax(bool flag)
+void TQBarMeter::useValueMax(bool flag)
{
if(useValMax!=flag) {
useValMax= flag;
@@ -48,7 +48,7 @@ void QBarMeter::useValueMax(bool flag)
}
}
-void QBarMeter::setValueMax(double newVal)
+void TQBarMeter::setValueMax(double newVal)
{
if(valMax!=newVal) {
valMax= newVal;
@@ -56,14 +56,14 @@ void QBarMeter::setValueMax(double newVal)
}
}
-void QBarMeter::setValueMaxColor(const QColor &newColor)
+void TQBarMeter::setValueMaxColor(const TQColor &newColor)
{
maxColor= newColor;
update();
}
-void QBarMeter::setValue(double newVal)
+void TQBarMeter::setValue(double newVal)
{
if(val[0]!=newVal) {
val[0]= newVal;
@@ -71,13 +71,13 @@ void QBarMeter::setValue(double newVal)
}
}
-void QBarMeter::setValueColor(const QColor &newColor)
+void TQBarMeter::setValueColor(const TQColor &newColor)
{
color[0]= newColor;
update();
}
-void QBarMeter::setValue(int index, double newVal)
+void TQBarMeter::setValue(int index, double newVal)
{
if(val[index]!=newVal) {
val[index]= newVal;
@@ -85,7 +85,7 @@ void QBarMeter::setValue(int index, double newVal)
}
}
-void QBarMeter::setValueColor(int index, const QColor &newColor)
+void TQBarMeter::setValueColor(int index, const TQColor &newColor)
{
if(color[index]!=newColor) {
color[index]= newColor;
@@ -94,7 +94,7 @@ void QBarMeter::setValueColor(int index, const QColor &newColor)
}
-void QBarMeter::setValueCount(int newCount)
+void TQBarMeter::setValueCount(int newCount)
{
if(count!=newCount) {
count= newCount;
@@ -102,13 +102,13 @@ void QBarMeter::setValueCount(int newCount)
}
}
-void QBarMeter::setSteps(int newSteps)
+void TQBarMeter::setSteps(int newSteps)
{
steps= newSteps;
update();
}
-void QBarMeter::paintEvent( QPaintEvent *)
+void TQBarMeter::paintEvent( TQPaintEvent *)
{
int x,y,lx,ly,sx,sy;
switch(dir) {
@@ -151,7 +151,7 @@ void QBarMeter::paintEvent( QPaintEvent *)
}
int csteps= steps;
- QPainter p(this);
+ TQPainter p(this);
for(int i= 0; i<count; i++) {
int v= (int) ( ((double)steps * val[i]) / valMax +0.5);