Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Mail-related libraries
Commits
ef8ac8af
Commit
ef8ac8af
authored
Mar 16, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show all website
parent
d207ff19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
kaddressbookgrantlee/src/formatter/grantleecontactformatter.cpp
...ssbookgrantlee/src/formatter/grantleecontactformatter.cpp
+7
-5
No files found.
kaddressbookgrantlee/src/formatter/grantleecontactformatter.cpp
View file @
ef8ac8af
...
...
@@ -331,15 +331,17 @@ QString GrantleeContactFormatter::toHtml(HtmlForm form) const
contactObject
.
insert
(
QStringLiteral
(
"imAddresses"
),
imAddresses
);
// Homepage
if
(
rawContact
.
url
().
url
().
isValid
())
{
QString
url
=
rawContact
.
url
().
url
().
url
();
QVariantList
websites
;
Q_FOREACH
(
const
KContacts
::
ResourceLocatorUrl
&
resourceLocator
,
rawContact
.
extraUrlList
())
{
QString
url
=
resourceLocator
.
url
().
url
();
if
(
!
url
.
startsWith
(
QStringLiteral
(
"http://"
))
&&
!
url
.
startsWith
(
QStringLiteral
(
"https://"
)))
{
url
=
QStringLiteral
(
"http://"
)
+
url
;
}
url
=
KStringHandler
::
tagUrls
(
url
);
contactObject
.
insert
(
QStringLiteral
(
"website"
),
url
);
websites
.
append
(
KStringHandler
::
tagUrls
(
url
));
}
if
(
!
websites
.
isEmpty
())
{
contactObject
.
insert
(
QStringLiteral
(
"websites"
),
websites
);
grantleeContactUtil
.
insertVariableToQVariantHash
(
contactObject
,
QStringLiteral
(
"websitei18n"
));
}
...
...
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