Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanmodule.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanmodule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanmodule.cpp b/noncore/settings/networksettings/wlan/wlanmodule.cpp index ab0b9a5..73e753c 100644 --- a/noncore/settings/networksettings/wlan/wlanmodule.cpp +++ b/noncore/settings/networksettings/wlan/wlanmodule.cpp | |||
@@ -74,32 +74,33 @@ QWidget *WLANModule::configure(Interface *, QTabWidget **tabWidget){ | |||
74 | QWidget *WLANModule::information(Interface *i, QTabWidget **tabWidget){ | 74 | QWidget *WLANModule::information(Interface *i, QTabWidget **tabWidget){ |
75 | WExtensions we(i->getInterfaceName()); | 75 | WExtensions we(i->getInterfaceName()); |
76 | if(!we.doesHaveWirelessExtensions()) | 76 | if(!we.doesHaveWirelessExtensions()) |
77 | return NULL; | 77 | return NULL; |
78 | 78 | ||
79 | WlanInfo *info = new WlanInfo(0, "wireless info"); | 79 | WlanInfo *info = new WlanInfo(0, "wireless info"); |
80 | (*tabWidget) = info->tabWidget; | 80 | (*tabWidget) = info->tabWidget; |
81 | 81 | ||
82 | info->essidLabel->setText(we.essid()); | 82 | info->essidLabel->setText(we.essid()); |
83 | info->apLabel->setText(we.ap()); | 83 | info->apLabel->setText(we.ap()); |
84 | info->stationLabel->setText(we.station()); | 84 | info->stationLabel->setText(we.station()); |
85 | info->modeLabel->setText(we.mode()); | 85 | info->modeLabel->setText(we.mode()); |
86 | info->freqLabel->setText(QString("%1").arg(we.frequency())); | 86 | info->freqLabel->setText(QString("%1 GHz").arg(we.frequency())); |
87 | int signal = 0; | 87 | int signal = 0; |
88 | int noise = 0; | 88 | int noise = 0; |
89 | int quality = 0; | 89 | int quality = 0; |
90 | we.stats(signal, noise, quality); | 90 | we.stats(signal, noise, quality); |
91 | info->signalProgressBar->setProgress(signal); | 91 | info->signalProgressBar->setProgress(signal); |
92 | info->noiseProgressBar->setProgress(noise); | 92 | info->noiseProgressBar->setProgress(noise); |
93 | info->qualityProgressBar->setProgress(quality); | 93 | info->qualityProgressBar->setProgress(quality); |
94 | info->rateLabel->setText(QString("%1 Mb/s").arg(we.rate())); | ||
94 | return info; | 95 | return info; |
95 | } | 96 | } |
96 | 97 | ||
97 | /** | 98 | /** |
98 | * Get all active (up or down) interfaces | 99 | * Get all active (up or down) interfaces |
99 | * @return QList<Interface> A list of interfaces that exsist that havn't | 100 | * @return QList<Interface> A list of interfaces that exsist that havn't |
100 | * been called by isOwner() | 101 | * been called by isOwner() |
101 | */ | 102 | */ |
102 | QList<Interface> WLANModule::getInterfaces(){ | 103 | QList<Interface> WLANModule::getInterfaces(){ |
103 | return list; | 104 | return list; |
104 | } | 105 | } |
105 | 106 | ||