// show color dialog for the entry void OptionsDialog::slotColItemSelected(QListBoxItem *it) { if (it) { ColorListItem *colorItem = static_cast<ColorListItem*>(it); QColor col = colorItem->color(); int result = KColorDialog::getColor(col,this); if (result == KColorDialog::Accepted) { colorItem->setColor(col); c_List->triggerUpdate(false); slotChanged(); } } }