diff options
Diffstat (limited to 'src/uptimepanel.cpp')
-rw-r--r-- | src/uptimepanel.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/uptimepanel.cpp b/src/uptimepanel.cpp index 6852ff4..36a1f54 100644 --- a/src/uptimepanel.cpp +++ b/src/uptimepanel.cpp @@ -19,14 +19,14 @@ #include "procinfo.h" #include "qlcddraw.h" -#include <qcolor.h> -#include <qpainter.h> +#include <ntqcolor.h> +#include <ntqpainter.h> -UpTimePanel::UpTimePanel(QWidget *parent, const char *name) : Panel(parent,name) +UpTimePanel::UpTimePanel(TQWidget *parent, const char *name) : Panel(parent,name) { - lcd= new QLCDString(this); + lcd= new TQLCDString(this); lcd->setGeometry(6,25,52,15); lcd->setShadow(true); lcd->setForeColor(red); @@ -46,13 +46,13 @@ void UpTimePanel::updateInfo() int hours = uptime/ (60*60); int minutes= (uptime % (60*60)) / 60; - QString str; + TQString str; str.sprintf("%02d:%02d",hours,minutes); lcd->display(str); update(); } -void UpTimePanel::drawContents(QPainter *p) +void UpTimePanel::drawContents(TQPainter *p) { int w= width(); int h= height(); @@ -60,11 +60,11 @@ void UpTimePanel::drawContents(QPainter *p) int i2= (h * 4) / 5; int th= h-i2-h/11; - QLcd::draw(p, 2,h/10,w-4,th,"hh:mm",QLcd::alignCenter, &getColorTitle()); - QLcd::draw(p, 2,i2+1,w-4,th,"Up Time",QLcd::alignCenter,&getColorTitle()); + TQLcd::draw(p, 2,h/10,w-4,th,"hh:mm",TQLcd::alignCenter, &getColorTitle()); + TQLcd::draw(p, 2,i2+1,w-4,th,"Up Time",TQLcd::alignCenter,&getColorTitle()); } -void UpTimePanel::resizeEvent ( QResizeEvent *e ) +void UpTimePanel::resizeEvent ( TQResizeEvent *e ) { int w= width(); int h= height(); |