void ContactWidget::sSearch() { ContactSearch* newdlg = new ContactSearch(this); if (newdlg) { ParameterList params; params.append("searchAcctId", _searchAcctId); newdlg->set(params); int id = newdlg->exec(); if (id > 0) setId(id); } else QMessageBox::critical(this, tr("A System Error Occurred at %1::%2.") .arg(__FILE__) .arg(__LINE__), tr("Could not instantiate a Search Dialog")); }
void ContactClusterLineEdit::sSearch() { ContactSearch* newdlg = searchFactory(); if (newdlg) { ParameterList params; params.append("titalPlural", tr("Contacts")); if (_searchAcctId != -1) params.append("searchAcctId", _searchAcctId); newdlg->set(params); int id = newdlg->exec(); setId(id); } else QMessageBox::critical(this, tr("A System Error Occurred at %1::%2.") .arg(__FILE__) .arg(__LINE__), tr("Could not instantiate a Search Dialog")); }