Commit a4539253 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Fix KDeclarative::setupBindings() deprecation warnings

Reviewers: #kwin, mart

Reviewed By: #kwin, mart

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13835
parent e0bbf5c8
......@@ -597,7 +597,8 @@ void EffectView::init(ViewType type)
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine());
kdeclarative.setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
kdeclarative.setupBindings();
kdeclarative.setupContext();
kdeclarative.setupEngine(engine());
QString path;
switch (type) {
case CompositingSettingsView:
......
......@@ -91,7 +91,8 @@ ConfigurationModule::ConfigurationModule(QWidget *parent, const QVariantList &ar
KDeclarative::KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(m_quickView->engine());
kdeclarative.setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
kdeclarative.setupBindings();
kdeclarative.setupContext();
kdeclarative.setupEngine(m_quickView->engine());
qmlRegisterType<QAbstractItemModel>();
QWidget *widget = QWidget::createWindowContainer(m_quickView, this);
......
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