void ContactWidget::sList() { ContactList* newdlg = new ContactList(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 List Dialog")); }
void ContactClusterLineEdit::sList() { ContactList* newdlg = listFactory(); if (newdlg) { ParameterList params; params.append("titlePlural", 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 List Dialog")); }