summaryrefslogtreecommitdiffstats
path: root/src/cputimepanel.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-07-24 09:59:06 -0500
committerTimothy Pearson <[email protected]>2013-07-24 09:59:06 -0500
commit24857cad8e92c27bc7d7377549ae887adbeccc58 (patch)
treee8aa2577506c17c68286ec1b65ae31b89ea0556b /src/cputimepanel.cpp
parentea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff)
downloadksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz
ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip
Convert to TDE R14 API
Diffstat (limited to 'src/cputimepanel.cpp')
-rw-r--r--src/cputimepanel.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/cputimepanel.cpp b/src/cputimepanel.cpp
index 5581dc2..6b6612a 100644
--- a/src/cputimepanel.cpp
+++ b/src/cputimepanel.cpp
@@ -19,49 +19,49 @@
#include "procinfo.h"
-CpuTimePanel::CpuTimePanel(QWidget *parent, const char *name): Panel(parent,name)
+CpuTimePanel::CpuTimePanel(TQWidget *parent, const char *name): Panel(parent,name)
{
- lcd1= new QLCDString(this);
+ lcd1= new TQLCDString(this);
lcd1->setGeometry(16,38,46,8);
lcd1->setForeColor(red);
- lcd1->setAlign(QLCDString::alignLeft);
+ lcd1->setAlign(TQLCDString::alignLeft);
lcd1->setNumberDisplay(true);
lcd1->installEventFilter(this);
- QColor color2( 200, 0, 0);
+ TQColor color2( 200, 0, 0);
- lcd2= new QLCDString(this);
+ lcd2= new TQLCDString(this);
lcd2->setGeometry(16,28,46,8);
lcd2->setForeColor(color2);
- lcd2->setAlign(QLCDString::alignLeft);
+ lcd2->setAlign(TQLCDString::alignLeft);
lcd2->setNumberDisplay(true);
lcd2->installEventFilter(this);
- QColor color3( 128,32,0 );
+ TQColor color3( 128,32,0 );
- lcd3= new QLCDString(this);
+ lcd3= new TQLCDString(this);
lcd3->setGeometry(16,18,46,8);
lcd3->setForeColor(color3);
- lcd3->setAlign(QLCDString::alignLeft);
+ lcd3->setAlign(TQLCDString::alignLeft);
lcd3->setNumberDisplay(true);
lcd3->installEventFilter(this);
- lcd4= new QLCDString(this);
+ lcd4= new TQLCDString(this);
lcd4->setGeometry(16,8,46,8);
lcd4->setForeColor(darkGreen);
- lcd4->setAlign(QLCDString::alignLeft);
+ lcd4->setAlign(TQLCDString::alignLeft);
lcd4->setNumberDisplay(true);
lcd4->installEventFilter(this);
- barMeter= new QBarMeter(this);
+ barMeter= new TQBarMeter(this);
barMeter->setGeometry(6,6,6,40);
- barMeter->setDirection(QBarMeter::dirUp);
+ barMeter->setDirection(TQBarMeter::dirUp);
barMeter->setSteps(20);
barMeter->useValueMax(false);
barMeter->setValueColor( 0, red );
barMeter->setValueColor( 1, color2 );
barMeter->setValueColor( 2, color3 );
- barMeter->setValueColor( 3, QColor(0,220,0) );
+ barMeter->setValueColor( 3, TQColor(0,220,0) );
barMeter->setValueCount(4);
barMeter->installEventFilter(this);
@@ -72,13 +72,13 @@ CpuTimePanel::CpuTimePanel(QWidget *parent, const char *name): Panel(parent,name
CpuTimePanel::~CpuTimePanel(){
}
-void CpuTimePanel::drawContents(QPainter *p)
+void CpuTimePanel::drawContents(TQPainter *p)
{
int w= width();
int h= height();
int i2= (h * 4) / 5;
int th= h-i2-h/11;
- QLcd::draw(p, 2,i2+1,w-4,th, "CPU STATE",QLcd::alignCenter,&getColorTitle());
+ TQLcd::draw(p, 2,i2+1,w-4,th, "CPU STATE",TQLcd::alignCenter,&getColorTitle());
}
@@ -97,7 +97,7 @@ void CpuTimePanel::updateInfo()
if (ptotal==0) ptotal=1;
- QString str;
+ TQString str;
str.sprintf ("USER%5.1f" , (float)puser /ptotal * 100 );
lcd1->display(str);
str.sprintf ("NICE%5.1f" , (float)pnice /ptotal * 100 );
@@ -118,7 +118,7 @@ void CpuTimePanel::updateInfo()
old_idle = idle;
}
-void CpuTimePanel::resizeEvent ( QResizeEvent *e )
+void CpuTimePanel::resizeEvent ( TQResizeEvent *e )
{
int w= width();
int h= height();