Commit 7c024b22 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix porting

parent 7e4b94d6
Pipeline #181175 passed with stage
in 19 minutes and 35 seconds
......@@ -93,13 +93,8 @@ bool ApplicationGnuPGWKSFormatter::render(const MimeTreeParser::MessagePartPtr &
if (hasError) {
mp->nodeHelper()->setProperty(propertyName.constData(), QVariant());
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
GrantleeTheme::Engine engine;
engine.localizer()->setApplicationDomain(QByteArrayLiteral("messageviewer_application_gnupgwks_plugin"));
#else
KTextTemplate::Engine engine;
// TODO look at how to port it engine.localizer()->setApplicationDomain(QByteArrayLiteral("messageviewer_application_gnupgwks_plugin"));
#endif
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
auto loader = QSharedPointer<Grantlee::FileSystemTemplateLoader>::create();
#else
......@@ -117,11 +112,10 @@ bool ApplicationGnuPGWKSFormatter::render(const MimeTreeParser::MessagePartPtr &
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Grantlee::Context ctx;
ctx.setLocalizer(engine.localizer());
#else
KTextTemplate::Context ctx;
// TODO how to port it ? ctx.setLocalizer(engine.localizer());
#endif
ctx.setLocalizer(engine.localizer());
QObject block;
......
Supports Markdown
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