-rw-r--r-- | noncore/settings/networksettings/mainwindow.ui | 24 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 8 |
2 files changed, 31 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/mainwindow.ui b/noncore/settings/networksettings/mainwindow.ui index f61a1ae..a730dd5 100644 --- a/noncore/settings/networksettings/mainwindow.ui +++ b/noncore/settings/networksettings/mainwindow.ui @@ -35,4 +35,8 @@ <cstring>tabWidget</cstring> </property> + <property stdset="1"> + <name>enabled</name> + <bool>true</bool> + </property> <property> <name>layoutMargin</name> @@ -137,4 +141,8 @@ <bool>true</bool> </property> + <property> + <name>whatsThis</name> + <string>A list of network settings to be choosen from</string> + </property> </widget> <widget> @@ -166,4 +174,8 @@ <string>&Add</string> </property> + <property> + <name>whatsThis</name> + <string>Add a new interface to the list.</string> + </property> </widget> <widget row="0" column="0" > @@ -177,4 +189,8 @@ <string>&Start/Stop</string> </property> + <property> + <name>whatsThis</name> + <string>Start and Stop the current interface, gives additional information about the interface.</string> + </property> </widget> <widget row="0" column="1" > @@ -188,4 +204,8 @@ <string>&Configure</string> </property> + <property> + <name>whatsThis</name> + <string>Configure the current interface</string> + </property> </widget> <widget row="1" column="1" > @@ -199,4 +219,8 @@ <string>&Remove</string> </property> + <property> + <name>whatsThis</name> + <string>Remove the current interface from the list.</string> + </property> </widget> </grid> diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 63b9603..abf5663 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp @@ -12,4 +12,5 @@ #include <qheader.h> #include <qlabel.h> +#include <qtabwidget.h> // in order to disable the profiles tab #include <qmessagebox.h> @@ -59,4 +60,8 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connect(newProfile, SIGNAL(textChanged(const QString&)), this, SLOT(newProfileChanged(const QString&))); + + //FIXME: disable profiles for the moment: + tabWidget->setTabEnabled( tab, false ); + // Load connections. // /usr/local/kde/lib/libinterfaces.la @@ -95,5 +100,6 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par Config cfg("NetworkSetup"); profiles = QStringList::split(" ", cfg.readEntry("Profiles", "All")); - for ( QStringList::Iterator it = profiles.begin(); it != profiles.end(); ++it) + for ( QStringList::Iterator it = profiles.begin(); + it != profiles.end(); ++it) profilesList->insertItem((*it)); currentProfileLabel->setText(cfg.readEntry("CurrentProfile", "All")); |