Skip to content
GitLab
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
af289816
Commit
af289816
authored
Jan 04, 2017
by
Laurent Montel
Browse files
Use QLatin1Char when possible
parent
640c8a2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/actions/qskypedialer.cpp
View file @
af289816
...
...
@@ -149,7 +149,7 @@ bool QSkypeDialer::sendSms(const QString &number, const QString &text)
// First we create a new SMS object that gets an ID. We need that ID later...
QDBusReply
<
QString
>
reply
=
mInterface
->
call
(
QStringLiteral
(
"Invoke"
),
QStringLiteral
(
"CREATE SMS OUTGOING %1"
).
arg
(
number
));
const
QString
messageId
=
reply
.
value
().
section
(
Q
StringLiteral
(
" "
),
1
,
1
);
const
QString
messageId
=
reply
.
value
().
section
(
Q
Latin1Char
(
' '
),
1
,
1
);
// Set the SMS text
reply
=
mInterface
->
call
(
QStringLiteral
(
"Invoke"
),
QStringLiteral
(
"SET SMS %1 BODY %2"
).
arg
(
messageId
,
text
));
...
...
src/contactstreemodel.cpp
View file @
af289816
...
...
@@ -135,13 +135,13 @@ QVariant ContactsTreeModel::entityData(const Item &item, int column, int role) c
values
+=
number
.
number
();
}
return
values
.
join
(
Q
StringLiteral
(
"
\n
"
));
return
values
.
join
(
Q
Latin1Char
(
'
\n
'
));
break
;
}
case
PreferredEmail
:
return
contact
.
preferredEmail
();
case
AllEmails
:
return
contact
.
emails
().
join
(
Q
StringLiteral
(
"
\n
"
));
return
contact
.
emails
().
join
(
Q
Latin1Char
(
'
\n
'
));
case
Organization
:
return
contact
.
organization
();
case
Role
:
...
...
src/emailaddressrequester.cpp
View file @
af289816
...
...
@@ -70,7 +70,7 @@ void EmailAddressRequester::Private::slotAddressBook()
}
}
mLineEdit
->
setText
(
text
+
addressList
.
join
(
Q
StringLiteral
(
","
)));
mLineEdit
->
setText
(
text
+
addressList
.
join
(
Q
Latin1Char
(
','
)));
}
EmailAddressRequester
::
EmailAddressRequester
(
QWidget
*
parent
)
...
...
src/standardcontactformatter.cpp
View file @
af289816
...
...
@@ -123,7 +123,7 @@ QString StandardContactFormatter::toHtml(HtmlForm form) const
int
counter
=
0
;
foreach
(
const
KContacts
::
PhoneNumber
&
number
,
rawContact
.
phoneNumbers
())
{
QString
dispLabel
=
number
.
typeLabel
().
replace
(
Q
StringLiteral
(
" "
),
QStringLiteral
(
" "
));
QString
dispLabel
=
number
.
typeLabel
().
replace
(
Q
Latin1Char
(
' '
),
QStringLiteral
(
" "
));
QString
dispValue
=
QStringLiteral
(
"<a href=
\"
phone:?index=%1
\"
>%2</a>"
).
arg
(
counter
).
arg
(
number
.
number
().
toHtmlEscaped
());
if
(
number
.
type
()
&
KContacts
::
PhoneNumber
::
Cell
)
{
QString
dispIcon
=
QStringLiteral
(
"<a href=
\"
sms:?index=%1
\"
title=
\"
%2
\"
><img src=
\"
sms_icon
\"
align=
\"
top
\"
/>"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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