Commit f0b581e9 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Fix build with Qt < 5.14

For now the state will only be set properly if the user is running a
newer version of Qt.
parent c98f3488
......@@ -139,7 +139,9 @@ DiscoverObject::DiscoverObject(CompactMode mode, const QVariantMap &initialPrope
plugin->initializeEngine(m_engine, uri);
plugin->registerTypes(uri);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
m_engine->setInitialProperties(initialProperties);
#endif
m_engine->rootContext()->setContextProperty(QStringLiteral("app"), this);
m_engine->rootContext()->setContextProperty(QStringLiteral("discoverAboutData"), QVariant::fromValue(KAboutData::applicationData()));
......
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