author | zecke <zecke> | 2002-07-08 18:46:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-08 18:46:40 (UTC) |
commit | 7d82c654e6a1df83f70b2d81aa05a1175799b66b (patch) (side-by-side diff) | |
tree | 079e87ac4dcd96c304a4e8eb7f928194fffe63f1 /noncore/net/opietooth/manager/scandialog.cpp | |
parent | 35d0ca5cc59b82af7b7ddb343ec092c3171b11ef (diff) | |
download | opie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.zip opie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.tar.gz opie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.tar.bz2 |
API clean ups
Diffstat (limited to 'noncore/net/opietooth/manager/scandialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/scandialog.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp index 0e6e93b..3d6c928 100644 --- a/noncore/net/opietooth/manager/scandialog.cpp +++ b/noncore/net/opietooth/manager/scandialog.cpp @@ -149,35 +149,33 @@ namespace OpieTooth { /* * Iterates trough the items, and collects the checked items. * Then it emits it, so the manager can connect to the signal to fill the listing. */ void ScanDialog::emitToManager() { qDebug("vor liste durchsuchen"); if (!ListView1) { return; } - QList<RemoteDevice> *deviceList = new QList<RemoteDevice>; - deviceList->setAutoDelete(true); + QValueList<RemoteDevice> deviceList; QListViewItemIterator it( ListView1 ); for ( ; it.current(); ++it ) { if ( ((QCheckListItem*)it.current())->isOn() ) { - RemoteDevice * device = new RemoteDevice( it.current()->text(1), it.current()->text(0)); - deviceList->append( device ); + RemoteDevice device( it.current()->text(1), it.current()->text(0)); + deviceList.append( device ); } } qDebug("vor emit"); - emit selectedDevices( *deviceList ); - delete deviceList; + emit selectedDevices( deviceList ); } /* * Cleanup */ ScanDialog::~ScanDialog() { delete localDevice; } } |