summaryrefslogtreecommitdiffstats
path: root/wifi/statistics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wifi/statistics.cpp')
-rw-r--r--wifi/statistics.cpp20
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