summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 71da82e..c993c7c 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -36,2 +36,3 @@
36#include <qlineedit.h> 36#include <qlineedit.h>
37#include <qlistview.h>
37 38
@@ -43,3 +44,4 @@ namespace OpieTooth {
43 44
44 class RemoteDevices; 45
46 #include <remotedevice.h>
45 47
@@ -155,6 +157,15 @@ namespace OpieTooth {
155 157
156 void BlueBase::addSearchedDevices( QList<RemoteDevices> &newDevices ) { 158 void BlueBase::addSearchedDevices( QList<RemoteDevice> &newDevices ) {
159
160 QListViewItem * deviceItem;
161
162 QListIterator<RemoteDevice> it(newDevices);
157 163
164 for( ; it.current(); ++it ) {
158 165
159 166
167 RemoteDevice *dev = it.current();
168 deviceItem = new QListViewItem( ListView4, dev->name() );
169 deviceItem->setText(1, dev->mac() );
170 }
160 } 171 }
@@ -167,4 +178,4 @@ namespace OpieTooth {
167 ScanDialog *scan = new ScanDialog( this, "", true); 178 ScanDialog *scan = new ScanDialog( this, "", true);
168 QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevices>&) ), 179 QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevice>&) ),
169 this, SLOT( addSearchedDevices(QList<RemoteDevices>& ) )); 180 this, SLOT( addSearchedDevices(QList<RemoteDevice>& ) ));
170 181