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/status.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/status.cpp')
-rw-r--r-- | wifi/status.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/wifi/status.cpp b/wifi/status.cpp index b40fa67d..e7ace893 100644 --- a/wifi/status.cpp +++ b/wifi/status.cpp @@ -22,8 +22,8 @@ #include <unistd.h> #include <sys/types.h> -Status::Status (QWidget * parent, Interface_wireless * device) - : QWidget (parent, "KWiFiManager status") +Status::Status (TQWidget * parent, Interface_wireless * device) + : TQWidget (parent, "KWiFiManager status") { this->device = device; } @@ -38,29 +38,29 @@ bool Status::generateStatsWidget () qual = 0; device->get_current_quality (sig, noi, qual); content = - new QGroupBox (2, Qt::Horizontal, i18n ("Status of Active Connection"), + new TQGroupBox (2, Qt::Horizontal, i18n ("Status of Active Connection"), this); bool has_freq = device->get_device_freq (freq); if ((!has_freq) || (qual == 0)) { - stat = new QLabel (i18n ("Searching for network: "), content); + stat = new TQLabel (i18n ("Searching for network: "), content); } else - stat = new QLabel (i18n ("Connected to network: "), content); - net_id = new QLabel (device->get_essid (), content); - ap_str = new QLabel (i18n ("Access point: "), content); + stat = new TQLabel (i18n ("Connected to network: "), content); + net_id = new TQLabel (device->get_essid (), content); + ap_str = new TQLabel (i18n ("Access point: "), content); QString mac, ip; device->get_AP_info (mac, ip); if ((mac != "44:44:44:44:44:44") && (mac != "00:00:00:00:00:00")) { - ap_ad = new QLabel (mac, content); + ap_ad = new TQLabel (mac, content); } else { - ap_ad = new QLabel (i18n("- no access point -"),content); + ap_ad = new TQLabel (i18n("- no access point -"),content); } - local_ip_string = new QLabel (i18n ("Local IP: "), content); - local_ip_content = new QLabel (device->get_IP_info (), content); - fr_str = new QLabel (i18n ("Frequency [channel]: "), content); + local_ip_string = new TQLabel (i18n ("Local IP: "), content); + local_ip_content = new TQLabel (device->get_IP_info (), content); + fr_str = new TQLabel (i18n ("Frequency [channel]: "), content); QString temp3 = "%1"; QString @@ -342,10 +342,10 @@ bool Status::generateStatsWidget () temp3 = temp3.arg (freq); } - fr = new QLabel ( has_freq ? temp2 + " [" + temp3 + "]" : "" , content); + fr = new TQLabel ( has_freq ? temp2 + " [" + temp3 + "]" : "" , content); if (geteuid () == 0) { - enc_str = new QLabel (i18n ("Encryption: "), content); + enc_str = new TQLabel (i18n ("Encryption: "), content); QString key; int @@ -356,26 +356,26 @@ bool Status::generateStatsWidget () // will the following line suffice? if (size == 0) { - enc = new QLabel (i18n ("off"), content); + enc = new TQLabel (i18n ("off"), content); } else - enc = new QLabel (i18n ("active"), content); + enc = new TQLabel (i18n ("active"), content); } // content->setFixedSize (content->sizeHint ()); content->setMinimumSize(content->sizeHint()); if ( content->minimumWidth() < 280 ) content->setMinimumWidth( 280 ); setFixedSize (content->minimumSize()); content->show (); - widgetbild = QPixmap::grabWidget (content); + widgetbild = TQPixmap::grabWidget (content); delete content; return true; } void -Status::paintEvent (QPaintEvent *) +Status::paintEvent (TQPaintEvent *) { - QPainter *paintArea = new QPainter (this); + TQPainter *paintArea = new TQPainter (this); generateStatsWidget (); paintArea->drawPixmap (0, 0, widgetbild); delete paintArea; |