diff options
Diffstat (limited to 'wifi/picture.cpp')
-rw-r--r-- | wifi/picture.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/wifi/picture.cpp b/wifi/picture.cpp index 5e4d28c5..010a4225 100644 --- a/wifi/picture.cpp +++ b/wifi/picture.cpp @@ -25,7 +25,7 @@ #define X_OFFSET 20 #define Y_OFFSET 10 -Picture::Picture (TQWidget * parent, Interface_wireless * device):TQWidget (parent, +Picture::Picture (TQWidget * tqparent, Interface_wireless * device):TQWidget (tqparent, "picture") { this->device = device; @@ -64,7 +64,7 @@ Picture::~Picture () void Picture::paintEvent (TQPaintEvent *) { - TQPainter *picturepainter = new TQPainter (this); + TQPainter *pictutqrepainter = new TQPainter (this); double freq; int mode; device->get_mode (mode); @@ -72,21 +72,21 @@ Picture::paintEvent (TQPaintEvent *) device->get_current_quality (sig, noise, qual); if (!device->get_device_freq (freq) || device->get_txpower_disabled()) { - picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD); + pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD); } else if (mode == 1) { - picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AD_HOC); + pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AD_HOC); } else if (qual == 0) { - picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *ALL_ALONE); + pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *ALL_ALONE); } else if (qual > 0) { - picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AP_CONNECT); + pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *AP_CONNECT); } else - picturepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD); - delete picturepainter; + pictutqrepainter->drawPixmap (X_OFFSET, Y_OFFSET, *NO_CARD); + delete pictutqrepainter; } |