Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Contacts
Commits
dff0219c
Commit
dff0219c
authored
Jan 05, 2017
by
Laurent Montel
😁
Browse files
Use multi-arg
parent
af289816
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/contactcompletionmodel.cpp
View file @
dff0219c
...
...
@@ -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
:
...
...
src/contactgrouplineedit.cpp
View file @
dff0219c
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment