Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
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 @@ -10,8 +10,9 @@ #include <qlineedit.h> #include <qlistview.h> #include <qheader.h> #include <qlabel.h> +#include <qtabwidget.h> // in order to disable the profiles tab #include <qmessagebox.h> #ifdef QWS @@ -57,8 +58,12 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connect(removeProfileButton, SIGNAL(clicked()), this, SLOT(removeProfile())); connect(setCurrentProfileButton, SIGNAL(clicked()), this, SLOT(changeProfile())); 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 #ifdef QWS loadModules(QPEApplication::qpeDir() + "/plugins/networksettings"); @@ -93,10 +98,11 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connectionList->header()->hide(); Config cfg("NetworkSetup"); profiles = QStringList::split(" ", cfg.readEntry("Profiles", "All")); - for ( QStringList::Iterator it = profiles.begin(); it != profiles.end(); ++it) - profilesList->insertItem((*it)); + for ( QStringList::Iterator it = profiles.begin(); + it != profiles.end(); ++it) + profilesList->insertItem((*it)); currentProfileLabel->setText(cfg.readEntry("CurrentProfile", "All")); advancedUserMode = cfg.readBoolEntry("AdvancedUserMode", false); scheme = cfg.readEntry("SchemeFile", DEFAULT_SCHEME); |