summaryrefslogtreecommitdiffstats
path: root/src/rampanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rampanel.cpp')
-rw-r--r--src/rampanel.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/rampanel.cpp b/src/rampanel.cpp
index b927ffb..17b72ab 100644
--- a/src/rampanel.cpp
+++ b/src/rampanel.cpp
@@ -19,29 +19,29 @@
#include "procinfo.h"
-RamPanel::RamPanel(QWidget *parent, const char *name, RamType type): Panel(parent,name)
+RamPanel::RamPanel(TQWidget *parent, const char *name, RamType type): Panel(parent,name)
{
ramType= type;
memTotal= -1;
memUsed = -1;
- arc = new QDialArc(this);
+ arc = new TQDialArc(this);
arc->installEventFilter(this);
arc->setAngles(180,-180);
arc->setGeometry( 6 , 64/4+9, 64-10, 64/2-8);
- arc->setColorRanges(red,red,QColor(0,200,150)); // QColor(0,200,0));
+ arc->setColorRanges(red,red,TQColor(0,200,150)); // TQColor(0,200,0));
- lcd1= new QLCDString(this);
+ lcd1= new TQLCDString(this);
lcd1->setGeometry(6, 8,54,11);
lcd1->setShadow(true);
lcd1->setForeColor(getColorValue());
- lcd1->setAlign(QLCDString::alignCenter);
+ lcd1->setAlign(TQLCDString::alignCenter);
lcd1->installEventFilter(this);
- lcd2= new QLCDString(this);
+ lcd2= new TQLCDString(this);
lcd2->setGeometry(4, 52,58,8);
lcd2->setForeColor(getColorTitle());
- lcd2->setAlign(QLCDString::alignCenter);
+ lcd2->setAlign(TQLCDString::alignCenter);
lcd2->installEventFilter(this);
updateInfo();
@@ -67,14 +67,14 @@ void RamPanel::updateInfo()
if(memTotal!=newMemTotal) {
arc->setValueRanges(0,newMemTotal);
- QString str;
+ TQString str;
str.sprintf ( ramType==memSWAP ? "SWP %dM" : "RAM %dM", newMemTotal);
lcd2->display(str);
memTotal= newMemTotal;
}
if(memUsed!=newMemUsed) {
- QString str;
+ TQString str;
str.sprintf ("%dM" , newMemUsed );
lcd1->display(str);
arc->setValue(newMemUsed);
@@ -85,14 +85,14 @@ void RamPanel::updateInfo()
}
-void RamPanel::paletteChange(const QPalette &oldPalette)
+void RamPanel::paletteChange(const TQPalette &oldPalette)
{
lcd2->setForeColor(getColorTitle());
lcd1->setForeColor(getColorValue());
arc->setArrowColor(getColorValue());
}
-void RamPanel::resizeEvent ( QResizeEvent *e )
+void RamPanel::resizeEvent ( TQResizeEvent *e )
{
int w= width();
int h= height();