diff options
Diffstat (limited to 'wifi/status.cpp')
-rw-r--r-- | wifi/status.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/wifi/status.cpp b/wifi/status.cpp index e7ace893..c6072c4f 100644 --- a/wifi/status.cpp +++ b/wifi/status.cpp @@ -22,13 +22,13 @@ #include <unistd.h> #include <sys/types.h> -Status::Status (TQWidget * parent, Interface_wireless * device) - : TQWidget (parent, "KWiFiManager status") +tqStatus::tqStatus (TQWidget * tqparent, Interface_wireless * device) + : TQWidget (tqparent, "KWiFiManager status") { this->device = device; } -bool Status::generateStatsWidget () +bool tqStatus::generateStatsWidget () { double freq = 0.; @@ -38,7 +38,7 @@ bool Status::generateStatsWidget () qual = 0; device->get_current_quality (sig, noi, qual); content = - new TQGroupBox (2, Qt::Horizontal, i18n ("Status of Active Connection"), + new TQGroupBox (2, Qt::Horizontal, i18n ("tqStatus of Active Connection"), this); bool has_freq = device->get_device_freq (freq); if ((!has_freq) || (qual == 0)) @@ -49,7 +49,7 @@ bool Status::generateStatsWidget () 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 + TQString mac, ip; device->get_AP_info (mac, ip); @@ -61,87 +61,87 @@ bool Status::generateStatsWidget () 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 + TQString temp3 = "%1"; - QString + TQString temp2 = "%1"; if (freq >= 1000000000) { if (freq / 1000000. > 5690.) { - temp3 = temp3.arg(140); + temp3 = temp3.tqarg(140); } else if (freq / 1000000. > 5670.) { - temp3 = temp3.arg(136); + temp3 = temp3.tqarg(136); } else if (freq / 1000000. > 5650.) { - temp3 = temp3.arg(132); + temp3 = temp3.tqarg(132); } else if (freq / 1000000. > 5630.) { - temp3 = temp3.arg(128); + temp3 = temp3.tqarg(128); } else if (freq / 1000000. > 5610.) { - temp3 = temp3.arg(124); + temp3 = temp3.tqarg(124); } else if (freq / 1000000. > 5590.) { - temp3 = temp3.arg(120); + temp3 = temp3.tqarg(120); } else if (freq / 1000000. > 5570.) { - temp3 = temp3.arg(116); + temp3 = temp3.tqarg(116); } else if (freq / 1000000. > 5550.) { - temp3 = temp3.arg(112); + temp3 = temp3.tqarg(112); } else if (freq / 1000000. > 5530.) { - temp3 = temp3.arg(108); + temp3 = temp3.tqarg(108); } else if (freq / 1000000. > 5510.) { - temp3 = temp3.arg(104); + temp3 = temp3.tqarg(104); } else if (freq / 1000000. > 5490.) { - temp3 = temp3.arg(100); + temp3 = temp3.tqarg(100); } else if (freq / 1000000. > 5310.) { - temp3 = temp3.arg(64); + temp3 = temp3.tqarg(64); } else if (freq / 1000000. > 5290.) { - temp3 = temp3.arg(60); + temp3 = temp3.tqarg(60); } else if (freq / 1000000. > 5270.) { - temp3 = temp3.arg(56); + temp3 = temp3.tqarg(56); } else if (freq / 1000000. > 5250.) { - temp3 = temp3.arg(52); + temp3 = temp3.tqarg(52); } else if (freq / 1000000. > 5230.) { - temp3 = temp3.arg(48); + temp3 = temp3.tqarg(48); } else if (freq / 1000000. > 5210.) { - temp3 = temp3.arg(44); + temp3 = temp3.tqarg(44); } else if (freq / 1000000. > 5190.) { - temp3 = temp3.arg(40); + temp3 = temp3.tqarg(40); } else if (freq / 1000000. > 5170.) { - temp3 = temp3.arg(36); + temp3 = temp3.tqarg(36); } else if (freq / 1000000. > 2474.) { @@ -346,7 +346,7 @@ bool Status::generateStatsWidget () if (geteuid () == 0) { enc_str = new TQLabel (i18n ("Encryption: "), content); - QString + TQString key; int size = 0, @@ -361,10 +361,10 @@ bool Status::generateStatsWidget () else enc = new TQLabel (i18n ("active"), content); } - // content->setFixedSize (content->sizeHint ()); - content->setMinimumSize(content->sizeHint()); + // content->setFixedSize (content->tqsizeHint ()); + content->setMinimumSize(content->tqsizeHint()); if ( content->minimumWidth() < 280 ) content->setMinimumWidth( 280 ); - setFixedSize (content->minimumSize()); + setFixedSize (content->tqminimumSize()); content->show (); widgetbild = TQPixmap::grabWidget (content); delete @@ -373,7 +373,7 @@ bool Status::generateStatsWidget () } void -Status::paintEvent (TQPaintEvent *) +tqStatus::paintEvent (TQPaintEvent *) { TQPainter *paintArea = new TQPainter (this); generateStatsWidget (); |