ui_qt: change design of cfg dlg, add handling of click on item