-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 @@ | |||
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()); |
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 @@ | |||
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()); |