diff options
Diffstat (limited to 'wifi/status.cpp')
-rw-r--r-- | wifi/status.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/wifi/status.cpp b/wifi/status.cpp index 0bd45b3a..4d8b5784 100644 --- a/wifi/status.cpp +++ b/wifi/status.cpp @@ -22,13 +22,13 @@ #include <unistd.h> #include <sys/types.h> -tqStatus::tqStatus (TQWidget * parent, Interface_wireless * device) +Status::Status (TQWidget * parent, Interface_wireless * device) : TQWidget (parent, "KWiFiManager status") { this->device = device; } -bool tqStatus::generateStatsWidget () +bool Status::generateStatsWidget () { double freq = 0.; @@ -69,79 +69,79 @@ bool tqStatus::generateStatsWidget () { if (freq / 1000000. > 5690.) { - temp3 = temp3.tqarg(140); + temp3 = temp3.arg(140); } else if (freq / 1000000. > 5670.) { - temp3 = temp3.tqarg(136); + temp3 = temp3.arg(136); } else if (freq / 1000000. > 5650.) { - temp3 = temp3.tqarg(132); + temp3 = temp3.arg(132); } else if (freq / 1000000. > 5630.) { - temp3 = temp3.tqarg(128); + temp3 = temp3.arg(128); } else if (freq / 1000000. > 5610.) { - temp3 = temp3.tqarg(124); + temp3 = temp3.arg(124); } else if (freq / 1000000. > 5590.) { - temp3 = temp3.tqarg(120); + temp3 = temp3.arg(120); } else if (freq / 1000000. > 5570.) { - temp3 = temp3.tqarg(116); + temp3 = temp3.arg(116); } else if (freq / 1000000. > 5550.) { - temp3 = temp3.tqarg(112); + temp3 = temp3.arg(112); } else if (freq / 1000000. > 5530.) { - temp3 = temp3.tqarg(108); + temp3 = temp3.arg(108); } else if (freq / 1000000. > 5510.) { - temp3 = temp3.tqarg(104); + temp3 = temp3.arg(104); } else if (freq / 1000000. > 5490.) { - temp3 = temp3.tqarg(100); + temp3 = temp3.arg(100); } else if (freq / 1000000. > 5310.) { - temp3 = temp3.tqarg(64); + temp3 = temp3.arg(64); } else if (freq / 1000000. > 5290.) { - temp3 = temp3.tqarg(60); + temp3 = temp3.arg(60); } else if (freq / 1000000. > 5270.) { - temp3 = temp3.tqarg(56); + temp3 = temp3.arg(56); } else if (freq / 1000000. > 5250.) { - temp3 = temp3.tqarg(52); + temp3 = temp3.arg(52); } else if (freq / 1000000. > 5230.) { - temp3 = temp3.tqarg(48); + temp3 = temp3.arg(48); } else if (freq / 1000000. > 5210.) { - temp3 = temp3.tqarg(44); + temp3 = temp3.arg(44); } else if (freq / 1000000. > 5190.) { - temp3 = temp3.tqarg(40); + temp3 = temp3.arg(40); } else if (freq / 1000000. > 5170.) { - temp3 = temp3.tqarg(36); + temp3 = temp3.arg(36); } else if (freq / 1000000. > 2474.) { @@ -361,10 +361,10 @@ bool tqStatus::generateStatsWidget () else enc = new TQLabel (i18n ("active"), content); } - // content->setFixedSize (content->tqsizeHint ()); - content->setMinimumSize(content->tqsizeHint()); + // content->setFixedSize (content->sizeHint ()); + content->setMinimumSize(content->sizeHint()); if ( content->minimumWidth() < 280 ) content->setMinimumWidth( 280 ); - setFixedSize (content->tqminimumSize()); + setFixedSize (content->minimumSize()); content->show (); widgetbild = TQPixmap::grabWidget (content); delete @@ -373,7 +373,7 @@ bool tqStatus::generateStatsWidget () } void -tqStatus::paintEvent (TQPaintEvent *) +Status::paintEvent (TQPaintEvent *) { TQPainter *paintArea = new TQPainter (this); generateStatsWidget (); |