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/locator.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/locator.cpp')
-rw-r--r-- | wifi/locator.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/wifi/locator.cpp b/wifi/locator.cpp index dc4e4ce1..ad4e7945 100644 --- a/wifi/locator.cpp +++ b/wifi/locator.cpp @@ -15,13 +15,13 @@ * * ***************************************************************************/ -#include <qpainter.h> +#include <tqpainter.h> #include "locator.h" #include "interface_wireless.h" -extern QStringList APs; +extern TQStringList APs; -Locator::Locator (QWidget * parent, Interface_wireless * device):QWidget (parent, +Locator::Locator (TQWidget * parent, Interface_wireless * device):TQWidget (parent, "KwiFiManager") { this->device = device; @@ -30,10 +30,10 @@ Locator::Locator (QWidget * parent, Interface_wireless * device):QWidget (parent void Locator::generateLocWidget () { - QString mac, ip; + TQString mac, ip; device->get_AP_info (mac, ip); sentence = - new QLabel (i18n ("AccessPoint: ") + whois (mac.local8Bit (), APs), this); + new TQLabel (i18n ("AccessPoint: ") + whois (mac.local8Bit (), APs), this); setFixedSize (QSize (sentence->sizeHint ().width () + 2, sentence->sizeHint ().height ())); @@ -42,14 +42,14 @@ Locator::generateLocWidget () (sentence->sizeHint ().width () + 2, sentence->sizeHint ().height ())); sentence->show (); - widgetbild = QPixmap::grabWidget (sentence); + widgetbild = TQPixmap::grabWidget (sentence); delete sentence; } void -Locator::paintEvent (QPaintEvent *) +Locator::paintEvent (TQPaintEvent *) { - QPainter *locatorpainter = new QPainter (this); + TQPainter *locatorpainter = new TQPainter (this); generateLocWidget (); locatorpainter->drawPixmap (0, 0, widgetbild); delete locatorpainter; |