void ChewingEditor::setupAdd() { connect( ui_.get()->actionAddPhrase, SIGNAL(triggered()), ui_.get()->userphraseView, SLOT(showAddUserphraseDialog()) ); connect( model_, SIGNAL(addNewPhraseCompleted(const Userphrase&)), ui_.get()->notification, SLOT(notifyAddNewPhraseCompleted(const Userphrase&)) ); }
void UserphraseView::setupAddUserphraseDialog() { connect( menu_->getActionAddPhrase(), SIGNAL(triggered()), this, SLOT(showAddUserphraseDialog()) ); connect( menu_->getActionModifyPhrase(), SIGNAL(triggered()), this, SLOT(showModifyUserphraseDialog()) ); connect( UserphraseDialog_, SIGNAL(finished(int)), this, SLOT(addPhrase(int)) ); }