Commit dff0219c authored by Laurent Montel's avatar Laurent Montel 😁

Use multi-arg

parent af289816
......@@ -103,7 +103,7 @@ QVariant ContactCompletionModel::entityData(const Item &item, int column, int ro
return QString();
}
return QStringLiteral("%1 <%2>").arg(name).arg(email);
return QStringLiteral("%1 <%2>").arg(name, email);
}
break;
case EmailColumn:
......
......@@ -60,7 +60,7 @@ void ContactGroupLineEdit::setContactData(const KContacts::ContactGroup::Data &g
mContactData = groupData;
mContainsReference = false;
setText(QStringLiteral("%1 <%2>").arg(groupData.name()).arg(groupData.email()));
setText(QStringLiteral("%1 <%2>").arg(groupData.name(), groupData.email()));
}
KContacts::ContactGroup::Data ContactGroupLineEdit::contactData() const
......@@ -166,7 +166,7 @@ void ContactGroupLineEdit::updateView(const Akonadi::Item &item, const QString &
if (email.isEmpty()) {
setText(QStringLiteral("%1").arg(name));
} else {
setText(QStringLiteral("%1 <%2>").arg(name).arg(email));
setText(QStringLiteral("%1 <%2>").arg(name, email));
}
mContactReference.setGid(contact.uid());
......
Markdown is supported
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