summaryrefslogtreecommitdiffstats
path: root/wifi/picture.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /wifi/picture.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/picture.cpp')
-rw-r--r--wifi/picture.cpp16
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;
}