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
bee0faca
Commit
bee0faca
authored
May 11, 2021
by
Laurent Montel
😁
Browse files
Fix some clazy warning
parent
119d317c
Pipeline
#61550
passed with stage
in 12 minutes and 13 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/akonadi-contacts/emailaddressselectionproxymodel.cpp
View file @
bee0faca
...
...
@@ -38,7 +38,7 @@ static QString createToolTip(const KContacts::ContactGroup &group)
static
QString
createToolTip
(
const
QString
&
name
,
const
QString
&
email
)
{
return
QStringLiteral
(
"<qt>%1<b>%2</b></qt>"
).
arg
(
name
.
isEmpty
()
?
QString
()
:
name
+
QLatin1String
(
"<br/>"
)
).
arg
(
email
);
return
QStringLiteral
(
"<qt>%1<b>%2</b></qt>"
).
arg
(
name
.
isEmpty
()
?
QString
()
:
name
+
QLatin1String
(
"<br/>"
)
,
email
);
}
EmailAddressSelectionProxyModel
::
EmailAddressSelectionProxyModel
(
QObject
*
parent
)
...
...
src/akonadi-contacts/standardcontactgroupformatter.cpp
View file @
bee0faca
...
...
@@ -87,11 +87,11 @@ QString StandardContactGroupFormatter::toHtml(HtmlForm form) const
}
}
for
(
const
QVariantMap
&
map
:
additionalFields
())
{
const
auto
additionalFieldsLst
=
additionalFields
();
for
(
const
QVariantMap
&
map
:
additionalFieldsLst
)
{
strGroup
.
append
(
QStringLiteral
(
"<tr><td colspan=
\"
2
\"
> </td></tr><tr><td align=
\"
right
\"
width=
\"
30%
\"
><b><font color=
\"
grey
\"
>%1</font></b></td>"
"<td valign=
\"
bottom
\"
align=
\"
left
\"
width=
\"
50%
\"
><font>%2</font></td></tr>"
)
.
arg
(
map
.
value
(
QStringLiteral
(
"title"
)).
toString
())
.
arg
(
map
.
value
(
QStringLiteral
(
"value"
)).
toString
()));
.
arg
(
map
.
value
(
QStringLiteral
(
"title"
)).
toString
(),
map
.
value
(
QStringLiteral
(
"value"
)).
toString
()));
}
strGroup
.
append
(
QLatin1String
(
"</table>
\n
"
));
...
...
@@ -113,9 +113,9 @@ QString StandardContactGroupFormatter::toHtml(HtmlForm form) const
"%3"
// contact group part
"</body>"
"</html>"
)
.
arg
(
KColorScheme
(
QPalette
::
Active
,
KColorScheme
::
View
).
foreground
().
color
().
name
()
)
.
arg
(
KColorScheme
(
QPalette
::
Active
,
KColorScheme
::
View
).
background
().
color
().
name
()
)
.
arg
(
document
);
.
arg
(
KColorScheme
(
QPalette
::
Active
,
KColorScheme
::
View
).
foreground
().
color
().
name
()
,
KColorScheme
(
QPalette
::
Active
,
KColorScheme
::
View
).
background
().
color
().
name
()
,
document
);
return
document
;
}
src/contact-editor/editor/generalinfoeditor/phone/phonewidget.h
View file @
bee0faca
...
...
@@ -34,9 +34,9 @@ public:
void
setPreferred
(
bool
b
);
void
setReadOnly
(
bool
readOnly
);
Q_SIGNALS:
void
addWidget
(
PhoneWidget
*
);
void
removeWidget
(
PhoneWidget
*
);
void
preferredChanged
(
PhoneWidget
*
);
void
addWidget
(
ContactEditor
::
PhoneWidget
*
);
void
removeWidget
(
ContactEditor
::
PhoneWidget
*
);
void
preferredChanged
(
ContactEditor
::
PhoneWidget
*
);
private:
void
slotAddPhone
();
...
...
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