author | zecke <zecke> | 2002-11-03 11:12:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-11-03 11:12:03 (UTC) |
commit | 2afc9d92749fbd5c2b94475c3eb4607d3b9b0105 (patch) (side-by-side diff) | |
tree | 970cff387bb47cd639b6c181a05e7c9efc124e99 /noncore | |
parent | e84a1bc31c336df5aea13ac23a47bc15b6ca2e8d (diff) | |
download | opie-2afc9d92749fbd5c2b94475c3eb4607d3b9b0105.zip opie-2afc9d92749fbd5c2b94475c3eb4607d3b9b0105.tar.gz opie-2afc9d92749fbd5c2b94475c3eb4607d3b9b0105.tar.bz2 |
default arguments in the implementation removed
-rw-r--r-- | noncore/net/networksetup/addconnectionimp.cpp | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/addconnectionimp.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/networksetup/addconnectionimp.cpp b/noncore/net/networksetup/addconnectionimp.cpp index ee7bd97..53db0fc 100644 --- a/noncore/net/networksetup/addconnectionimp.cpp +++ b/noncore/net/networksetup/addconnectionimp.cpp @@ -1,34 +1,34 @@ #include "addconnectionimp.h" #include <qlistview.h> #include <qlist.h> #include <qlabel.h> #include <qheader.h> /** * Constructor */ -AddConnectionImp::AddConnectionImp(QWidget *parent=0, const char *name=0, WFlags f=0):AddConnection(parent, name, f){ +AddConnectionImp::AddConnectionImp(QWidget *parent, const char *name, WFlags f):AddConnection(parent, name, f){ connect(registeredServicesList, SIGNAL(selectionChanged()), this, SLOT(changed())); registeredServicesList->header()->hide(); }; /** * The current item changed, update the discription. */ void AddConnectionImp::changed(){ QListViewItem *item = registeredServicesList->currentItem(); if(item){ help->setText(list[item->text(0)]); } } /** * Save a copy of newList for the discriptions and append them all to the view * @param newList the new list of possible interfaces */ void AddConnectionImp::addConnections(QMap<QString, QString> newList){ list = newList; QMap<QString, QString>::Iterator it; for( it = list.begin(); it != list.end(); ++it ) QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); diff --git a/noncore/settings/networksettings/addconnectionimp.cpp b/noncore/settings/networksettings/addconnectionimp.cpp index ee7bd97..53db0fc 100644 --- a/noncore/settings/networksettings/addconnectionimp.cpp +++ b/noncore/settings/networksettings/addconnectionimp.cpp @@ -1,34 +1,34 @@ #include "addconnectionimp.h" #include <qlistview.h> #include <qlist.h> #include <qlabel.h> #include <qheader.h> /** * Constructor */ -AddConnectionImp::AddConnectionImp(QWidget *parent=0, const char *name=0, WFlags f=0):AddConnection(parent, name, f){ +AddConnectionImp::AddConnectionImp(QWidget *parent, const char *name, WFlags f):AddConnection(parent, name, f){ connect(registeredServicesList, SIGNAL(selectionChanged()), this, SLOT(changed())); registeredServicesList->header()->hide(); }; /** * The current item changed, update the discription. */ void AddConnectionImp::changed(){ QListViewItem *item = registeredServicesList->currentItem(); if(item){ help->setText(list[item->text(0)]); } } /** * Save a copy of newList for the discriptions and append them all to the view * @param newList the new list of possible interfaces */ void AddConnectionImp::addConnections(QMap<QString, QString> newList){ list = newList; QMap<QString, QString>::Iterator it; for( it = list.begin(); it != list.end(); ++it ) QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); |