summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/editconnection.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/editconnection.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/editconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings2/editconnection.cpp b/noncore/settings/networksettings2/editconnection.cpp
index d4b2bb3..ce13573 100644
--- a/noncore/settings/networksettings2/editconnection.cpp
+++ b/noncore/settings/networksettings2/editconnection.cpp
@@ -268,49 +268,49 @@ void EditConnection::buildFullTree( void ) {
268 MyQCheckListItem * TheTop = new MyQCheckListItem( 268 MyQCheckListItem * TheTop = new MyQCheckListItem(
269 Nodes_LV, 269 Nodes_LV,
270 NSResources->netNode2Name("fullsetup"), 270 NSResources->netNode2Name("fullsetup"),
271 QCheckListItem::Controller ); 271 QCheckListItem::Controller );
272 TheTop->setOpen( TRUE ); 272 TheTop->setOpen( TRUE );
273 Description_LBL->setText( 273 Description_LBL->setText(
274 NSResources->netNode2Description( "fullsetup" ) ); 274 NSResources->netNode2Description( "fullsetup" ) );
275 Nodes_LV->setSelected( TheTop, TRUE ); 275 Nodes_LV->setSelected( TheTop, TRUE );
276 276
277 // find all Nodes that care toplevel nodes -> ie provide 277 // find all Nodes that care toplevel nodes -> ie provide
278 // TCP/IP Connection 278 // TCP/IP Connection
279 for( QDictIterator<NetNode_t> Iter(NSResources->netNodes()); 279 for( QDictIterator<NetNode_t> Iter(NSResources->netNodes());
280 Iter.current(); 280 Iter.current();
281 ++Iter ) { 281 ++Iter ) {
282 282
283 NN = Iter.current()->NetNode; 283 NN = Iter.current()->NetNode;
284 284
285 if( ! NN->isToplevel() ) { 285 if( ! NN->isToplevel() ) {
286 continue; 286 continue;
287 } 287 }
288 288
289 MyQCheckListItem * it = new MyQCheckListItem( TheTop, 289 MyQCheckListItem * it = new MyQCheckListItem( TheTop,
290 NN->nodeName(), 290 NN->nodeName(),
291 QCheckListItem::RadioButton ); 291 QCheckListItem::RadioButton );
292 it->setPixmap( 0, NSResources->getPixmap( "commprofile" ) ); 292 it->setPixmap( 0, NSResources->getPixmap( "Devices/commprofile" ) );
293 // remember that this node maps to this listitem 293 // remember that this node maps to this listitem
294 Mapping->insert( it, NN ); 294 Mapping->insert( it, NN );
295 buildSubTree( it, NN ); 295 buildSubTree( it, NN );
296 } 296 }
297} 297}
298 298
299// Build device tree -> help function 299// Build device tree -> help function
300void EditConnection::buildSubTree( QListViewItem * it, ANetNode *NN ) { 300void EditConnection::buildSubTree( QListViewItem * it, ANetNode *NN ) {
301 ANetNode::NetNodeList & NNL = NN->alternatives(); 301 ANetNode::NetNodeList & NNL = NN->alternatives();
302 302
303 if( NNL.size() > 1 ) { 303 if( NNL.size() > 1 ) {
304 // this node has alternatives -> needs radio buttons 304 // this node has alternatives -> needs radio buttons
305 it = new MyQCheckListItem( 305 it = new MyQCheckListItem(
306 it, 306 it,
307 NSResources->netNode2Name(NNL[0]->provides()), 307 NSResources->netNode2Name(NNL[0]->provides()),
308 QCheckListItem::Controller ); 308 QCheckListItem::Controller );
309 it->setSelectable( FALSE ); 309 it->setSelectable( FALSE );
310 } 310 }
311 311
312 for ( unsigned int i=0; i < NNL.size(); i++ ) { 312 for ( unsigned int i=0; i < NNL.size(); i++ ) {
313 QListViewItem * CI; 313 QListViewItem * CI;
314 if( NNL.size() > 1 ) { 314 if( NNL.size() > 1 ) {
315 // generate radio buttons 315 // generate radio buttons
316 CI = new MyQCheckListItem( 316 CI = new MyQCheckListItem(