diff --git a/app/infoview.cpp b/app/infoview.cpp index 2de4d90d3..66c548529 100644 --- a/app/infoview.cpp +++ b/app/infoview.cpp @@ -81,6 +81,8 @@ void InfoView::init() KDeclarative::KDeclarative kdeclarative; kdeclarative.setDeclarativeEngine(engine()); kdeclarative.setTranslationDomain(QStringLiteral("latte-dock")); + kdeclarative.setupContext(); + kdeclarative.setupEngine(engine()); // kdeclarative.setupBindings(); auto source = QUrl::fromLocalFile(m_corona->kPackage().filePath("infoviewui")); setSource(source); diff --git a/app/view/settings/primaryconfigview.cpp b/app/view/settings/primaryconfigview.cpp index 74f6ada26..253c0de36 100644 --- a/app/view/settings/primaryconfigview.cpp +++ b/app/view/settings/primaryconfigview.cpp @@ -152,6 +152,8 @@ void PrimaryConfigView::init() KDeclarative::KDeclarative kdeclarative; kdeclarative.setDeclarativeEngine(engine()); kdeclarative.setTranslationDomain(QStringLiteral("latte-dock")); + kdeclarative.setupContext(); + kdeclarative.setupEngine(engine()); //kdeclarative.setupBindings(); QByteArray tempFilePath = "lattedockconfigurationui"; diff --git a/app/view/settings/secondaryconfigview.cpp b/app/view/settings/secondaryconfigview.cpp index e2998bf54..ba3e29f03 100644 --- a/app/view/settings/secondaryconfigview.cpp +++ b/app/view/settings/secondaryconfigview.cpp @@ -121,6 +121,8 @@ void SecondaryConfigView::init() KDeclarative::KDeclarative kdeclarative; kdeclarative.setDeclarativeEngine(engine()); kdeclarative.setTranslationDomain(QStringLiteral("latte-dock")); + kdeclarative.setupContext(); + kdeclarative.setupEngine(engine()); //kdeclarative.setupBindings(); QByteArray tempFilePath = "lattedocksecondaryconfigurationui";