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/picture.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'wifi/picture.cpp') diff --git a/wifi/picture.cpp b/wifi/picture.cpp index 11d77cae..5e4d28c5 100644 --- a/wifi/picture.cpp +++ b/wifi/picture.cpp @@ -15,9 +15,9 @@ * * ***************************************************************************/ -#include -#include -#include +#include +#include +#include #include #include "picture.h" #include "interface_wireless.h" @@ -25,22 +25,22 @@ #define X_OFFSET 20 #define Y_OFFSET 10 -Picture::Picture (QWidget * parent, Interface_wireless * device):QWidget (parent, +Picture::Picture (TQWidget * parent, Interface_wireless * device):TQWidget (parent, "picture") { this->device = device; KStandardDirs finder; kdedir = finder.findResourceDir ("data", "kwifimanager/pics/no_card.png"); kdedir += "kwifimanager/pics/"; - NO_CARD = new QPixmap (kdedir + "no_card.png"); - AD_HOC = new QPixmap (kdedir + "ad_hoc.png"); - ALL_ALONE = new QPixmap (kdedir + "all_alone.png"); - AP_CONNECT = new QPixmap (kdedir + "ap_connect.png"); + NO_CARD = new TQPixmap (kdedir + "no_card.png"); + AD_HOC = new TQPixmap (kdedir + "ad_hoc.png"); + ALL_ALONE = new TQPixmap (kdedir + "all_alone.png"); + AP_CONNECT = new TQPixmap (kdedir + "ap_connect.png"); } -QSize Picture::mySizeHint() { +TQSize Picture::mySizeHint() { /* make this quite general, just in case someone uses different icons */ - QSize* temp = new QSize(NO_CARD->size()); + TQSize* temp = new TQSize(NO_CARD->size()); if (AD_HOC->size().width() > temp->width ()) { temp->setWidth (AD_HOC->size().width ()); } if (AD_HOC->size().height() > temp->height()) { temp->setHeight(AD_HOC->size().height()); } if (ALL_ALONE->size().width() > temp->width ()) { temp->setWidth (ALL_ALONE->size().width ()); } @@ -62,9 +62,9 @@ Picture::~Picture () } void -Picture::paintEvent (QPaintEvent *) +Picture::paintEvent (TQPaintEvent *) { - QPainter *picturepainter = new QPainter (this); + TQPainter *picturepainter = new TQPainter (this); double freq; int mode; device->get_mode (mode); -- cgit v1.2.1