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 @@ -#include "addconnectionimp.h" -#include <qlistview.h> -#include <qlist.h> -#include <qlabel.h> -#include <qheader.h> - -/** - * Constructor - */ -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(const 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()); -} - -// addserviceimp.cpp - |