author | benmeyer <benmeyer> | 2002-10-25 15:41:48 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-25 15:41:48 (UTC) |
commit | d0d87d596d64cc1d5ef6322896c68883e4dfb5d0 (patch) (side-by-side diff) | |
tree | 44fb7b0871c1d069cc470d0f38a05af187a98819 /noncore/settings/networksettings/wlan/wlanmodule.cpp | |
parent | 9086a63d5c27531c2014bade180b1cfd01663e2b (diff) | |
download | opie-d0d87d596d64cc1d5ef6322896c68883e4dfb5d0.zip opie-d0d87d596d64cc1d5ef6322896c68883e4dfb5d0.tar.gz opie-d0d87d596d64cc1d5ef6322896c68883e4dfb5d0.tar.bz2 |
Automaticly update the wlaninfo
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanmodule.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanmodule.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanmodule.cpp b/noncore/settings/networksettings/wlan/wlanmodule.cpp index bf2589e..3993ca0 100644 --- a/noncore/settings/networksettings/wlan/wlanmodule.cpp +++ b/noncore/settings/networksettings/wlan/wlanmodule.cpp @@ -1,6 +1,6 @@ #include "wlanmodule.h" #include "wlanimp.h" -#include "info.h" +#include "infoimp.h" #include "wextensions.h" #include <qlabel.h> @@ -72,22 +72,8 @@ QWidget *WLANModule::information(Interface *i, QTabWidget **tabWidget){ if(!we.doesHaveWirelessExtensions()) return NULL; - WlanInfo *info = new WlanInfo(0, "wireless info", Qt::WDestructiveClose); + WlanInfoImp *info = new WlanInfoImp(0, i->getInterfaceName(), Qt::WDestructiveClose); (*tabWidget) = info->tabWidget; - - info->essidLabel->setText(we.essid()); - info->apLabel->setText(we.ap()); - info->stationLabel->setText(we.station()); - info->modeLabel->setText(we.mode()); - info->freqLabel->setText(QString("%1 GHz").arg(we.frequency())); - int signal = 0; - int noise = 0; - int quality = 0; - we.stats(signal, noise, quality); - info->signalProgressBar->setProgress(signal); - info->noiseProgressBar->setProgress(noise); - info->qualityProgressBar->setProgress(quality); - info->rateLabel->setText(QString("%1 Mb/s").arg(we.rate())); return info; } |