Commit bee0faca authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent 119d317c
Pipeline #61550 passed with stage
in 12 minutes and 13 seconds
......@@ -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)
......
......@@ -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\">&nbsp;</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;
}
......@@ -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();
......
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