Commit 298650f7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile without depercated method

parent d2bcb1ff
Pipeline #146709 failed with stage
in 14 minutes and 19 seconds
......@@ -150,7 +150,7 @@ endif()
# Extra package
find_package(Gpgmepp 1.13.1 CONFIG)
set_package_properties(Gpgmepp PROPERTIES DESCRIPTION "GpgME library" URL "https://www.gnupg.org" TYPE REQUIRED)
ecm_set_disabled_deprecation_versions(QT 5.14.0 KF 5.91.0)
ecm_set_disabled_deprecation_versions(QT 5.14.0 KF 5.92.0)
option(KDEPIM_RUN_AKONADI_TEST "Enable autotest based on Akonadi." TRUE)
......
......@@ -37,7 +37,7 @@ QVariant AddressFormatter::doFilter(const QVariant &input, const QVariant &arg,
address.setRegion(a.addressRegion());
address.setCountry(a.addressCountry());
auto s = escape(address.formattedAddress().trimmed().replace(QLatin1String("\n\n"), QLatin1String("\n")));
auto s = escape(address.formatted(KContacts::AddressFormatStyle::Postal).trimmed().replace(QLatin1String("\n\n"), QLatin1String("\n")));
return s.get().replace(QLatin1Char('\n'), QLatin1String("<br/>"));
}
......
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