Fix KDeclarative::setupBindings() deprecation warnings
Reviewers: #kwin, mart Reviewed By: #kwin, mart Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D13835icc-effect-5.14.5
parent
e0bbf5c87f
commit
a453925306
|
@ -597,7 +597,8 @@ void EffectView::init(ViewType type)
|
||||||
KDeclarative::KDeclarative kdeclarative;
|
KDeclarative::KDeclarative kdeclarative;
|
||||||
kdeclarative.setDeclarativeEngine(engine());
|
kdeclarative.setDeclarativeEngine(engine());
|
||||||
kdeclarative.setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
|
kdeclarative.setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
|
||||||
kdeclarative.setupBindings();
|
kdeclarative.setupContext();
|
||||||
|
kdeclarative.setupEngine(engine());
|
||||||
QString path;
|
QString path;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case CompositingSettingsView:
|
case CompositingSettingsView:
|
||||||
|
|
|
@ -91,7 +91,8 @@ ConfigurationModule::ConfigurationModule(QWidget *parent, const QVariantList &ar
|
||||||
KDeclarative::KDeclarative kdeclarative;
|
KDeclarative::KDeclarative kdeclarative;
|
||||||
kdeclarative.setDeclarativeEngine(m_quickView->engine());
|
kdeclarative.setDeclarativeEngine(m_quickView->engine());
|
||||||
kdeclarative.setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
|
kdeclarative.setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
|
||||||
kdeclarative.setupBindings();
|
kdeclarative.setupContext();
|
||||||
|
kdeclarative.setupEngine(m_quickView->engine());
|
||||||
|
|
||||||
qmlRegisterType<QAbstractItemModel>();
|
qmlRegisterType<QAbstractItemModel>();
|
||||||
QWidget *widget = QWidget::createWindowContainer(m_quickView, this);
|
QWidget *widget = QWidget::createWindowContainer(m_quickView, this);
|
||||||
|
|
Loading…
Reference in New Issue