diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
commit | 24857cad8e92c27bc7d7377549ae887adbeccc58 (patch) | |
tree | e8aa2577506c17c68286ec1b65ae31b89ea0556b /src/lmsensordockpanel.cpp | |
parent | ea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff) | |
download | ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip |
Convert to TDE R14 API
Diffstat (limited to 'src/lmsensordockpanel.cpp')
-rw-r--r-- | src/lmsensordockpanel.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/lmsensordockpanel.cpp b/src/lmsensordockpanel.cpp index 143007e..b0b9361 100644 --- a/src/lmsensordockpanel.cpp +++ b/src/lmsensordockpanel.cpp @@ -16,11 +16,11 @@ ***************************************************************************/ -#include <qpixmap.h> +#include <ntqpixmap.h> #include <kstddirs.h> -#include <klocale.h> -#include <kconfig.h> +#include <tdelocale.h> +#include <tdeconfig.h> #include <kiconloader.h> #include "lmsensordockpanel.h" @@ -70,14 +70,14 @@ void LMSensorDockPanel::updateConfig() setValue(sensor->getValue()); } -void LMSensorDockPanel::paintEvent ( QPaintEvent *e ) +void LMSensorDockPanel::paintEvent ( TQPaintEvent *e ) { if(sensor) { int w= width(); int h= height(); - QPainter painter(this); - QColor color= sensor->getAlarm() ? colorAlarm : colorNormal; - QColor colorShadow= color.dark(200); + TQPainter painter(this); + TQColor color= sensor->getAlarm() ? colorAlarm : colorNormal; + TQColor colorShadow= color.dark(200); painter.setPen(color); painter.drawLine(2, 2 , w-2,2 ); painter.drawLine(2, h-3, w-2,h-3); @@ -85,21 +85,21 @@ void LMSensorDockPanel::paintEvent ( QPaintEvent *e ) painter.drawLine(3, 3 , w-3,3 ); painter.drawLine(3, h-4, w-3,h-4); if(sensor->getType()==Sensor::lmTemp) { - QLcd::draw(&painter,4,6,w-6, h-12,strValue.latin1(),QLcd::drawShadow,&color,&colorShadow); + TQLcd::draw(&painter,4,6,w-6, h-12,strValue.latin1(),TQLcd::drawShadow,&color,&colorShadow); } else { - QLcd::draw(&painter,1,7,w-1, h-14,strValue.latin1(),QLcd::drawNumber|QLcd::alignCenter|QLcd::drawShadow,&color,&colorShadow); + TQLcd::draw(&painter,1,7,w-1, h-14,strValue.latin1(),TQLcd::drawNumber|TQLcd::alignCenter|TQLcd::drawShadow,&color,&colorShadow); } } else { KSystemTray::paintEvent(e); } } -void LMSensorDockPanel::mousePressEvent ( QMouseEvent *e ) +void LMSensorDockPanel::mousePressEvent ( TQMouseEvent *e ) { emit mouseEvent(e); } -void LMSensorDockPanel::mouseReleaseEvent ( QMouseEvent *e ) +void LMSensorDockPanel::mouseReleaseEvent ( TQMouseEvent *e ) { emit mouseEvent(e); } @@ -107,39 +107,39 @@ void LMSensorDockPanel::mouseReleaseEvent ( QMouseEvent *e ) //*****************************************************************+ -void LMSensorDockPanel::writeColorAlarm(const char *name, const QColor &color) +void LMSensorDockPanel::writeColorAlarm(const char *name, const TQColor &color) { - KGlobal::config()->setGroup(name); - KGlobal::config()->writeEntry("colorAlarm",color); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("colorAlarm",color); } -void LMSensorDockPanel::writeColorNormal(const char *name,const QColor &color) +void LMSensorDockPanel::writeColorNormal(const char *name,const TQColor &color) { - KGlobal::config()->setGroup(name); - KGlobal::config()->writeEntry("colorNormal",color); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("colorNormal",color); } -QColor LMSensorDockPanel::readColorAlarm(const char *name) +TQColor LMSensorDockPanel::readColorAlarm(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readColorEntry("colorAlarm" , &red ); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readColorEntry("colorAlarm" , &red ); } -QColor LMSensorDockPanel::readColorNormal(const char *name) +TQColor LMSensorDockPanel::readColorNormal(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readColorEntry("colorNormal", &darkGreen); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readColorEntry("colorNormal", &darkGreen); } void LMSensorDockPanel::writeShowInDock(const char *name, bool fShow) { - KGlobal::config()->setGroup(name); - KGlobal::config()->writeEntry("showInDock",fShow); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("showInDock",fShow); } bool LMSensorDockPanel::readShowInDock(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readBoolEntry("showInDock", false); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readBoolEntry("showInDock", false); } |