summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/wlan/wlanmodule.cpp
Unidiff
Diffstat (limited to 'noncore/net/networksetup/wlan/wlanmodule.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/wlanmodule.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/net/networksetup/wlan/wlanmodule.cpp b/noncore/net/networksetup/wlan/wlanmodule.cpp
index 9ab3b76..c8becb0 100644
--- a/noncore/net/networksetup/wlan/wlanmodule.cpp
+++ b/noncore/net/networksetup/wlan/wlanmodule.cpp
@@ -3,7 +3,9 @@
3#include "infoimp.h" 3#include "infoimp.h"
4#include "wextensions.h" 4#include "wextensions.h"
5#include "interfaceinformationimp.h"
5 6
6#include <qlabel.h> 7#include <qlabel.h>
7#include <qprogressbar.h> 8#include <qprogressbar.h>
9#include <qtabwidget.h>
8 10
9/** 11/**
@@ -54,20 +56,17 @@ bool WLANModule::isOwner(Interface *i){
54 56
55/** 57/**
56 * Create, set tabWiget and return the WLANConfigure Module 58 * Create, and return the WLANConfigure Module
57 * @param tabWidget a pointer to the tab widget that this configure has. 59 * @return QWidget* pointer to this modules configure.
58 * @return QWidget* pointer to the tab widget in this modules configure.
59 */ 60 */
60QWidget *WLANModule::configure(Interface *, QTabWidget **tabWidget){ 61QWidget *WLANModule::configure(Interface *i){
61 WLANImp *wlanconfig = new WLANImp(0, "WlanConfig", false, Qt::WDestructiveClose); 62 WLANImp *wlanconfig = new WLANImp(0, "WlanConfig", i, false, Qt::WDestructiveClose);
62 (*tabWidget) = wlanconfig->tabWidget;
63 return wlanconfig; 63 return wlanconfig;
64} 64}
65 65
66/** 66/**
67 * Create, set tabWiget and return the Information Module 67 * Create, and return the Information Module
68 * @param tabWidget a pointer to the tab widget that this information has. 68 * @return QWidget* pointer to this modules info.
69 * @return QWidget* pointer to the tab widget in this modules info.
70 */ 69 */
71QWidget *WLANModule::information(Interface *i, QTabWidget **tabWidget){ 70QWidget *WLANModule::information(Interface *i){
72 WExtensions we(i->getInterfaceName()); 71 WExtensions we(i->getInterfaceName());
73 if(!we.doesHaveWirelessExtensions()) 72 if(!we.doesHaveWirelessExtensions())
@@ -75,5 +74,6 @@ QWidget *WLANModule::information(Interface *i, QTabWidget **tabWidget){
75 74
76 WlanInfoImp *info = new WlanInfoImp(0, i->getInterfaceName(), Qt::WDestructiveClose); 75 WlanInfoImp *info = new WlanInfoImp(0, i->getInterfaceName(), Qt::WDestructiveClose);
77 (*tabWidget) = info->tabWidget; 76 InterfaceInformationImp *information = new InterfaceInformationImp(info->tabWidget, "InterfaceSetupImp", i);
77 info->tabWidget->insertTab(information, "TCP/IP");
78 return info; 78 return info;
79} 79}