author | ar <ar> | 2004-08-20 21:16:56 (UTC) |
---|---|---|
committer | ar <ar> | 2004-08-20 21:16:56 (UTC) |
commit | da08f45abfb5e74c390d12736d3db9e8050068a2 (patch) (side-by-side diff) | |
tree | 121d6a2e1ee83ffa8d568eb633c0ab3bb2510dd2 | |
parent | a0520b8e1012bec8a2f2e7fe1d15e6fd1d38f0b0 (diff) | |
download | opie-da08f45abfb5e74c390d12736d3db9e8050068a2.zip opie-da08f45abfb5e74c390d12736d3db9e8050068a2.tar.gz opie-da08f45abfb5e74c390d12736d3db9e8050068a2.tar.bz2 |
- remove unnecessary tab.
this hack is only a dirty work-around to prevent some confusion. networksetting is unmaintained and should be replaced by networksettings2, when it's done.
-rw-r--r-- | noncore/settings/networksettings/mainwindow/mainwindowimp.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp index 5184630..a4a2875 100644 --- a/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindow/mainwindowimp.cpp @@ -21,72 +21,66 @@ #include <qlistview.h> #include <qheader.h> #include <qlabel.h> #include <qtabwidget.h> // in order to disable the profiles tab #include <qmessagebox.h> #if QT_VERSION < 300 #include <qlist.h> #else #include <qptrlist.h> #endif #include <qdir.h> #include <qfile.h> #include <qtextstream.h> #include <qregexp.h> /* STD */ #include <net/if.h> #include <sys/ioctl.h> #include <sys/socket.h> #define DEFAULT_SCHEME "/var/lib/pcmcia/scheme" #define _PROCNETDEV "/proc/net/dev" MainWindowImp::MainWindowImp(QWidget *parent, const char *name, WFlags) : MainWindow(parent, name, Qt::WStyle_ContextHelp), advancedUserMode(true), scheme(DEFAULT_SCHEME) { connect(addConnectionButton, SIGNAL(clicked()), this, SLOT(addClicked())); connect(removeConnectionButton, SIGNAL(clicked()), this, SLOT(removeClicked())); connect(informationConnectionButton, SIGNAL(clicked()), this, SLOT(informationClicked())); connect(configureConnectionButton, SIGNAL(clicked()), this, SLOT(configureClicked())); - 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 ); + //remove tab with no function + tabWidget->removePage( tab ); // Load connections. // /usr/local/kde/lib/libinterfaces.la #ifdef QWS loadModules(QPEApplication::qpeDir() + "plugins/networksettings"); #else loader = KLibLoader::self(); loadModules(QString("/usr/")+KStandardDirs::kde_default("lib")); #endif getAllInterfaces(); Interfaces i; QStringList list = i.getInterfaceList(); QMap<QString, Interface*>::Iterator it; for ( QStringList::Iterator ni = list.begin(); ni != list.end(); ++ni ) { /* * we skipped it in getAllInterfaces now * we need to ignore it as well */ if (m_handledIfaces.contains( *ni) ) { odebug << "Not up iface handled by module" << oendl; continue; } bool found = false; for( it = interfaceNames.begin(); it != interfaceNames.end(); ++it ) { if(it.key() == (*ni)) found = true; } if(!found) |