diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /wifi/statistics.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/statistics.cpp')
-rw-r--r-- | wifi/statistics.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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 <qwidget.h> -#include <qpainter.h> +#include <tqwidget.h> +#include <tqpainter.h> #include <klocale.h> #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 |