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

Port to QRegularExpression

parent 1b94d35e
......@@ -29,6 +29,7 @@
#include <KLocalizedString>
#include <KStringHandler>
#include <QRegularExpression>
#include <QSet>
#include <QLocale>
......@@ -180,7 +181,7 @@ QString StandardContactFormatter::toHtml(HtmlForm form) const
formattedAddress = address.label().toHtmlEscaped();
}
formattedAddress.replace(QRegExp(QStringLiteral("\n+")), QStringLiteral("<br>"));
formattedAddress.replace(QRegularExpression(QStringLiteral("\n+")), QStringLiteral("<br>"));
const QString url = QStringLiteral("<a href=\"address:?index=%1\" title=\"%2\"><img src=\"map_icon\" alt=\"%2\"/></a>")
.arg(counter)
......
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