author | zecke <zecke> | 2002-11-03 11:12:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-11-03 11:12:03 (UTC) |
commit | 2afc9d92749fbd5c2b94475c3eb4607d3b9b0105 (patch) (unidiff) | |
tree | 970cff387bb47cd639b6c181a05e7c9efc124e99 | |
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,38 +1,38 @@ | |||
1 | #include "addconnectionimp.h" | 1 | #include "addconnectionimp.h" |
2 | #include <qlistview.h> | 2 | #include <qlistview.h> |
3 | #include <qlist.h> | 3 | #include <qlist.h> |
4 | #include <qlabel.h> | 4 | #include <qlabel.h> |
5 | #include <qheader.h> | 5 | #include <qheader.h> |
6 | 6 | ||
7 | /** | 7 | /** |
8 | * Constructor | 8 | * Constructor |
9 | */ | 9 | */ |
10 | AddConnectionImp::AddConnectionImp(QWidget *parent=0, const char *name=0, WFlags f=0):AddConnection(parent, name, f){ | 10 | AddConnectionImp::AddConnectionImp(QWidget *parent, const char *name, WFlags f):AddConnection(parent, name, f){ |
11 | connect(registeredServicesList, SIGNAL(selectionChanged()), this, SLOT(changed())); | 11 | connect(registeredServicesList, SIGNAL(selectionChanged()), this, SLOT(changed())); |
12 | registeredServicesList->header()->hide(); | 12 | registeredServicesList->header()->hide(); |
13 | }; | 13 | }; |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * The current item changed, update the discription. | 16 | * The current item changed, update the discription. |
17 | */ | 17 | */ |
18 | void AddConnectionImp::changed(){ | 18 | void AddConnectionImp::changed(){ |
19 | QListViewItem *item = registeredServicesList->currentItem(); | 19 | QListViewItem *item = registeredServicesList->currentItem(); |
20 | if(item){ | 20 | if(item){ |
21 | help->setText(list[item->text(0)]); | 21 | help->setText(list[item->text(0)]); |
22 | } | 22 | } |
23 | } | 23 | } |
24 | 24 | ||
25 | /** | 25 | /** |
26 | * Save a copy of newList for the discriptions and append them all to the view | 26 | * Save a copy of newList for the discriptions and append them all to the view |
27 | * @param newList the new list of possible interfaces | 27 | * @param newList the new list of possible interfaces |
28 | */ | 28 | */ |
29 | void AddConnectionImp::addConnections(QMap<QString, QString> newList){ | 29 | void AddConnectionImp::addConnections(QMap<QString, QString> newList){ |
30 | list = newList; | 30 | list = newList; |
31 | QMap<QString, QString>::Iterator it; | 31 | QMap<QString, QString>::Iterator it; |
32 | for( it = list.begin(); it != list.end(); ++it ) | 32 | for( it = list.begin(); it != list.end(); ++it ) |
33 | QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); | 33 | QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); |
34 | registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); | 34 | registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); |
35 | } | 35 | } |
36 | 36 | ||
37 | // addserviceimp.cpp | 37 | // addserviceimp.cpp |
38 | 38 | ||
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,38 +1,38 @@ | |||
1 | #include "addconnectionimp.h" | 1 | #include "addconnectionimp.h" |
2 | #include <qlistview.h> | 2 | #include <qlistview.h> |
3 | #include <qlist.h> | 3 | #include <qlist.h> |
4 | #include <qlabel.h> | 4 | #include <qlabel.h> |
5 | #include <qheader.h> | 5 | #include <qheader.h> |
6 | 6 | ||
7 | /** | 7 | /** |
8 | * Constructor | 8 | * Constructor |
9 | */ | 9 | */ |
10 | AddConnectionImp::AddConnectionImp(QWidget *parent=0, const char *name=0, WFlags f=0):AddConnection(parent, name, f){ | 10 | AddConnectionImp::AddConnectionImp(QWidget *parent, const char *name, WFlags f):AddConnection(parent, name, f){ |
11 | connect(registeredServicesList, SIGNAL(selectionChanged()), this, SLOT(changed())); | 11 | connect(registeredServicesList, SIGNAL(selectionChanged()), this, SLOT(changed())); |
12 | registeredServicesList->header()->hide(); | 12 | registeredServicesList->header()->hide(); |
13 | }; | 13 | }; |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * The current item changed, update the discription. | 16 | * The current item changed, update the discription. |
17 | */ | 17 | */ |
18 | void AddConnectionImp::changed(){ | 18 | void AddConnectionImp::changed(){ |
19 | QListViewItem *item = registeredServicesList->currentItem(); | 19 | QListViewItem *item = registeredServicesList->currentItem(); |
20 | if(item){ | 20 | if(item){ |
21 | help->setText(list[item->text(0)]); | 21 | help->setText(list[item->text(0)]); |
22 | } | 22 | } |
23 | } | 23 | } |
24 | 24 | ||
25 | /** | 25 | /** |
26 | * Save a copy of newList for the discriptions and append them all to the view | 26 | * Save a copy of newList for the discriptions and append them all to the view |
27 | * @param newList the new list of possible interfaces | 27 | * @param newList the new list of possible interfaces |
28 | */ | 28 | */ |
29 | void AddConnectionImp::addConnections(QMap<QString, QString> newList){ | 29 | void AddConnectionImp::addConnections(QMap<QString, QString> newList){ |
30 | list = newList; | 30 | list = newList; |
31 | QMap<QString, QString>::Iterator it; | 31 | QMap<QString, QString>::Iterator it; |
32 | for( it = list.begin(); it != list.end(); ++it ) | 32 | for( it = list.begin(); it != list.end(); ++it ) |
33 | QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); | 33 | QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); |
34 | registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); | 34 | registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); |
35 | } | 35 | } |
36 | 36 | ||
37 | // addserviceimp.cpp | 37 | // addserviceimp.cpp |
38 | 38 | ||