void KDMUsersWidget::updateOptList( Q3ListViewItem *item, QStringList &list ) { if (!item) return; Q3CheckListItem *itm = (Q3CheckListItem *)item; int ind = list.indexOf( itm->text() ); if (itm->isOn()) { if (ind < 0) list.append( itm->text() ); } else { if (ind >= 0) list.removeAt( ind ); } }