void ContactView::onEdit() { setAddingNewContact(false); //editing ToDialog(); contactEditable(true); //and set focus on the first field ui->contact_pages->setCurrentIndex(info); ui->info_stack->setCurrentWidget(ui->info_edit); }
BOOL CSites_AdvancedPage::OnInitDialog() { CPropertyPage::OnInitDialog(); m_bDialogWasInited = TRUE; ToDialog (); m_bUserChangedProtocols = FALSE; ApplyLanguage (); return TRUE; }
void ContactView::onCancel() { setModified(false); ToDialog(); contactEditable(false); if (isAddingNewContact()) { emit canceledNewContact(); } else //editing contact { } }
void ContactView::setContact(const Contact& current_contact) { _current_contact = current_contact; ui->khid_pubkey->setContact(_current_contact); ToDialog(); }
void ContactView::addNewContact () { ToDialog(); contactEditable(true); }