void CitySelectDlg::slotSelected() { City *item = (City *)listBox->item(listBox->currentItem()); code = item->getCode(); }
void CitySelectDlg::slotItemClicked(ZSettingItem *item) { City *citem = (City *)item; code = citem->getCode(); accept(); }