author | tille <tille> | 2003-06-02 12:36:00 (UTC) |
---|---|---|
committer | tille <tille> | 2003-06-02 12:36:00 (UTC) |
commit | 2d0134f0bee1c0d33fc8cdc66ecc390080adba25 (patch) (side-by-side diff) | |
tree | 430950574b78a060940fc1a00942550fb5d84cf6 /noncore/settings/networksettings/mainwindowimp.cpp | |
parent | ed171b266b1f42b358b2b814deb33be21c220683 (diff) | |
download | opie-2d0134f0bee1c0d33fc8cdc66ecc390080adba25.zip opie-2d0134f0bee1c0d33fc8cdc66ecc390080adba25.tar.gz opie-2d0134f0bee1c0d33fc8cdc66ecc390080adba25.tar.bz2 |
disable the profile tab and add some whatsthis
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 @@ -8,12 +8,13 @@ #include <qpushbutton.h> #include <qlistbox.h> #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 #include <qpe/config.h> #include <qpe/qlibrary.h> @@ -55,12 +56,16 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connect(newProfileButton, SIGNAL(clicked()), this, SLOT(addProfile())); 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"); #else loader = KLibLoader::self(); @@ -91,14 +96,15 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par //getInterfaceList(); 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); QFile file(scheme); if ( file.open(IO_ReadOnly) ) { // file opened successfully |