Commit 43c4d215 authored by David Redondo's avatar David Redondo 🏎
Browse files

[Cuttlefish] Replace deprectated method KDeclarative::setupBindings()

Summary:
Replace method call like described in the documentation. Also we don't need to
cast &engine because a QQmlApplicationEngine is a QQmlEngine.

Test Plan: compiles

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25842
parent c570295b
......@@ -106,9 +106,10 @@ int main(int argc, char **argv)
QQmlApplicationEngine engine;
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(qobject_cast<QQmlEngine *>(&engine));
kdeclarative.setDeclarativeEngine(&engine);
kdeclarative.setTranslationDomain(QStringLiteral("cuttlefish"));
kdeclarative.setupBindings();
kdeclarative.setupContext();
kdeclarative.setupEngine(&engine);
auto package = KPackage::PackageLoader::self()->loadPackage("Plasma/Generic");
package.setPath("org.kde.plasma.cuttlefish");
......
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