author | simon <simon> | 2003-01-03 21:24:40 (UTC) |
---|---|---|
committer | simon <simon> | 2003-01-03 21:24:40 (UTC) |
commit | e483d88ee4158ba13d8c28b020d0e93b62e86d85 (patch) (unidiff) | |
tree | 2c4ac27cf05428ad58257869c90a9ce51c4e43d3 /noncore/net/networksetup/addconnectionimp.cpp | |
parent | 91395e6cd4d104b05f962ae8833767bbbd094163 (diff) | |
download | opie-e483d88ee4158ba13d8c28b020d0e93b62e86d85.zip opie-e483d88ee4158ba13d8c28b020d0e93b62e86d85.tar.gz opie-e483d88ee4158ba13d8c28b020d0e93b62e86d85.tar.bz2 |
- these have been renamed to networksettings
Diffstat (limited to 'noncore/net/networksetup/addconnectionimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/addconnectionimp.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/noncore/net/networksetup/addconnectionimp.cpp b/noncore/net/networksetup/addconnectionimp.cpp deleted file mode 100644 index 07545f7..0000000 --- a/noncore/net/networksetup/addconnectionimp.cpp +++ b/dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | #include "addconnectionimp.h" | ||
2 | #include <qlistview.h> | ||
3 | #include <qlist.h> | ||
4 | #include <qlabel.h> | ||
5 | #include <qheader.h> | ||
6 | |||
7 | /** | ||
8 | * Constructor | ||
9 | */ | ||
10 | AddConnectionImp::AddConnectionImp(QWidget *parent, const char *name, WFlags f):AddConnection(parent, name, f){ | ||
11 | connect(registeredServicesList, SIGNAL(selectionChanged()), this, SLOT(changed())); | ||
12 | registeredServicesList->header()->hide(); | ||
13 | }; | ||
14 | |||
15 | /** | ||
16 | * The current item changed, update the discription. | ||
17 | */ | ||
18 | void AddConnectionImp::changed(){ | ||
19 | QListViewItem *item = registeredServicesList->currentItem(); | ||
20 | if(item) | ||
21 | help->setText(list[item->text(0)]); | ||
22 | } | ||
23 | |||
24 | /** | ||
25 | * Save a copy of newList for the discriptions and append them all to the view | ||
26 | * @param newList the new list of possible interfaces | ||
27 | */ | ||
28 | void AddConnectionImp::addConnections(const QMap<QString, QString> &newList){ | ||
29 | list = newList; | ||
30 | QMap<QString, QString>::Iterator it; | ||
31 | for( it = list.begin(); it != list.end(); ++it ) | ||
32 | QListViewItem *item = new QListViewItem(registeredServicesList, it.key()); | ||
33 | registeredServicesList->setCurrentItem(registeredServicesList->firstChild()); | ||
34 | } | ||
35 | |||
36 | // addserviceimp.cpp | ||
37 | |||