From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- wifi/statistics.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'wifi/statistics.cpp') diff --git a/wifi/statistics.cpp b/wifi/statistics.cpp index 2ad8d393..a7716de1 100644 --- a/wifi/statistics.cpp +++ b/wifi/statistics.cpp @@ -15,13 +15,13 @@ * * ***************************************************************************/ -#include -#include +#include +#include #include #include "statistics.h" #include "interface_wireless.h" -Statistics::Statistics (Interface_wireless * device, bool showStatsNoise):QWidget (0, +Statistics::Statistics (Interface_wireless * device, bool showStatsNoise):TQWidget (0, "KWiFiManager") { this->setCaption (i18n ("Statistics - KWiFiManager")); @@ -30,10 +30,10 @@ Statistics::Statistics (Interface_wireless * device, bool showStatsNoise):QWidge } void -Statistics::paintEvent (QPaintEvent *) +Statistics::paintEvent (TQPaintEvent *) { - statpainter = new QPainter (this); - QColor farbe (255, 255, 255); + statpainter = new TQPainter (this); + TQColor farbe (255, 255, 255); statpainter->drawText (40, 30, i18n ("Noise/Signal Level Statistics")); statpainter->drawText (150, 260, i18n ("BLUE = signal level, RED = noise level")); @@ -42,8 +42,8 @@ Statistics::paintEvent (QPaintEvent *) statpainter->drawText (21, 274, i18n ("-240 s")); statpainter->drawText (510, 274, i18n ("now")); statpainter->fillRect (41, 41, 480, 201, farbe); - QPointArray datensatz (240); - QPointArray datensatz2 (240); + TQPointArray datensatz (240); + TQPointArray datensatz2 (240); // we may need to scale the output to fit into the window, so here we // determine the range of values int bottom = @@ -53,8 +53,8 @@ Statistics::paintEvent (QPaintEvent *) (device->sigLevelMax > device->noiseLevelMax) ? device->sigLevelMax : device->noiseLevelMax; int datarange = top - bottom; - statpainter->drawText (10, 50, QString ("%1").arg (top)); - statpainter->drawText (10, 240, QString ("%1").arg (bottom)); + statpainter->drawText (10, 50, TQString ("%1").arg (top)); + statpainter->drawText (10, 240, TQString ("%1").arg (bottom)); // if values are all below 0, this indicates proper dBm values -- cgit v1.2.1