summaryrefslogtreecommitdiffstats
path: root/src/lmsensorpanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmsensorpanel.cpp')
-rw-r--r--src/lmsensorpanel.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lmsensorpanel.cpp b/src/lmsensorpanel.cpp
index 5a73fde..7097321 100644
--- a/src/lmsensorpanel.cpp
+++ b/src/lmsensorpanel.cpp
@@ -17,7 +17,7 @@
#include "lmsensorpanel.h"
-LMSensorPanel::LMSensorPanel(Sensor *newSensor, QWidget *parent, const char *name ) : Panel(parent,name)
+LMSensorPanel::LMSensorPanel(Sensor *newSensor, TQWidget *parent, const char *name ) : Panel(parent,name)
{
alarm= false;
//
@@ -73,7 +73,7 @@ void LMSensorPanel::updateConfig()
arc->setValueRanges( min - (max-min)/3, max + (max-min)/3 );
arc->setValueMinLimit( min,10);
arc->setValueMaxLimit( max,10);
- arc->setColorRanges(blue,QColor(0,200,150),blue);
+ arc->setColorRanges(blue,TQColor(0,200,150),blue);
arc->setArrowColor(darkBlue);
}
valMask= "%.2fv";
@@ -89,7 +89,7 @@ void LMSensorPanel::updateConfig()
void LMSensorPanel::setValue(double value)
{
-QString str;
+TQString str;
str.sprintf(valMask.latin1(),value);
lcdVal->display(str);
@@ -114,7 +114,7 @@ QString str;
void LMSensorPanel::createTitleWidget()
{
- lcdDes = new QLCDString(this);
+ lcdDes = new TQLCDString(this);
lcdDes->setNumberDisplay(true);
lcdDes->installEventFilter(this);
}
@@ -122,7 +122,7 @@ void LMSensorPanel::createTitleWidget()
void LMSensorPanel::createGraphicWidget()
{
- arc = new QDialArc(this);
+ arc = new TQDialArc(this);
arc->installEventFilter(this);
arc->setAngles(180,-180);
}
@@ -130,14 +130,14 @@ void LMSensorPanel::createGraphicWidget()
void LMSensorPanel::createValueWidget()
{
- lcdVal = new QLCDString(this);
+ lcdVal = new TQLCDString(this);
lcdVal->installEventFilter(this);
lcdVal->setShadow(true);
lcdVal->setNumberDisplay(sensor->getType()==Sensor::lmVoltage);
}
-void LMSensorPanel::resizeEvent ( QResizeEvent *e )
+void LMSensorPanel::resizeEvent ( TQResizeEvent *e )
{
int w= width();
int h= height();
@@ -151,7 +151,7 @@ void LMSensorPanel::resizeEvent ( QResizeEvent *e )
lcdDes->setGeometry( 3 , i2+1, w -6 , h -i2-h/11);
}
-void LMSensorPanel::timerEvent( QTimerEvent * )
+void LMSensorPanel::timerEvent( TQTimerEvent * )
{
if(lcdVal->isVisible()) lcdVal->hide();
else lcdVal->show();
@@ -159,7 +159,7 @@ void LMSensorPanel::timerEvent( QTimerEvent * )
}
-void LMSensorPanel::paletteChange(const QPalette &oldPalette)
+void LMSensorPanel::paletteChange(const TQPalette &oldPalette)
{
lcdDes->setForeColor(getColorTitle());
lcdVal->setForeColor(getColorValue());