summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/addconnectionimp.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/addconnectionimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/addconnectionimp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/addconnectionimp.cpp b/noncore/settings/networksettings/addconnectionimp.cpp
index 53db0fc..07545f7 100644
--- a/noncore/settings/networksettings/addconnectionimp.cpp
+++ b/noncore/settings/networksettings/addconnectionimp.cpp
@@ -8,31 +8,30 @@
8 * Constructor 8 * Constructor
9 */ 9 */
10AddConnectionImp::AddConnectionImp(QWidget *parent, const char *name, WFlags f):AddConnection(parent, name, f){ 10AddConnectionImp::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 */
18void AddConnectionImp::changed(){ 18void 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 }
23} 22}
24 23
25/** 24/**
26 * Save a copy of newList for the discriptions and append them all to the view 25 * Save a copy of newList for the discriptions and append them all to the view
27 * @param newList the new list of possible interfaces 26 * @param newList the new list of possible interfaces
28 */ 27 */
29void AddConnectionImp::addConnections(QMap<QString, QString> newList){ 28void AddConnectionImp::addConnections(const QMap<QString, QString> &newList){
30 list = newList; 29 list = newList;
31 QMap<QString, QString>::Iterator it; 30 QMap<QString, QString>::Iterator it;
32 for( it = list.begin(); it != list.end(); ++it ) 31 for( it = list.begin(); it != list.end(); ++it )
33 QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); 32 QListViewItem *item = new QListViewItem(registeredServicesList, it.key());
34 registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); 33 registeredServicesList->setCurrentItem(registeredServicesList->firstChild());
35} 34}
36 35
37// addserviceimp.cpp 36// addserviceimp.cpp
38 37