author | zecke <zecke> | 2002-07-08 18:46:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-08 18:46:40 (UTC) |
commit | 7d82c654e6a1df83f70b2d81aa05a1175799b66b (patch) (unidiff) | |
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) (show 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 | |||
@@ -158,19 +158,17 @@ namespace OpieTooth { | |||
158 | return; | 158 | return; |
159 | } | 159 | } |
160 | 160 | ||
161 | QList<RemoteDevice> *deviceList = new QList<RemoteDevice>; | 161 | QValueList<RemoteDevice> deviceList; |
162 | deviceList->setAutoDelete(true); | ||
163 | 162 | ||
164 | QListViewItemIterator it( ListView1 ); | 163 | QListViewItemIterator it( ListView1 ); |
165 | for ( ; it.current(); ++it ) { | 164 | for ( ; it.current(); ++it ) { |
166 | if ( ((QCheckListItem*)it.current())->isOn() ) { | 165 | if ( ((QCheckListItem*)it.current())->isOn() ) { |
167 | RemoteDevice * device = new RemoteDevice( it.current()->text(1), it.current()->text(0)); | 166 | RemoteDevice device( it.current()->text(1), it.current()->text(0)); |
168 | deviceList->append( device ); | 167 | deviceList.append( device ); |
169 | } | 168 | } |
170 | } | 169 | } |
171 | qDebug("vor emit"); | 170 | qDebug("vor emit"); |
172 | emit selectedDevices( *deviceList ); | 171 | emit selectedDevices( deviceList ); |
173 | delete deviceList; | ||
174 | } | 172 | } |
175 | 173 | ||
176 | /* | 174 | /* |