Verified Commit bca22ddb authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Search with name and email address in group contact editor

BUG: 430788
parent 6e9dcf4e
Pipeline #74826 canceled with stage
......@@ -127,7 +127,7 @@ QWidget *ContactGroupEditorDelegate::createEditor(QWidget *parent, const QStyleO
const bool isReference = index.data(ContactGroupModel::IsReferenceRole).toBool();
Q_UNUSED(option)
if (index.column() == 0) {
auto edit = new ContactLineEdit(isReference, ContactCompletionModel::EmailColumn, parent);
auto edit = new ContactLineEdit(isReference, ContactCompletionModel::NameAndEmailColumn, parent);
connect(edit, QOverload<QWidget *>::of(&ContactLineEdit::completed), this, &ContactGroupEditorDelegate::completed);
return edit;
......@@ -138,7 +138,7 @@ QWidget *ContactGroupEditorDelegate::createEditor(QWidget *parent, const QStyleO
comboBox->setAutoFillBackground(true);
return comboBox;
} else {
auto edit = new ContactLineEdit(isReference, ContactCompletionModel::EmailColumn, parent);
auto edit = new ContactLineEdit(isReference, ContactCompletionModel::NameAndEmailColumn, parent);
connect(edit, QOverload<QWidget *>::of(&ContactLineEdit::completed), this, &ContactGroupEditorDelegate::completed);
return edit;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment