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/picture.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/picture.cpp')
-rw-r--r-- | wifi/picture.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 <qwidget.h> -#include <qpainter.h> -#include <qpixmap.h> +#include <tqwidget.h> +#include <tqpainter.h> +#include <tqpixmap.h> #include <kstandarddirs.h> #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); |