Disable KDeclarative in PresentWindows and DesktopGrid

QML code needs porting to QtQuick2
This commit is contained in:
Martin Gräßlin 2013-07-24 08:07:24 +02:00
parent ba7d50fdc5
commit 5e0484bc17
2 changed files with 6 additions and 0 deletions

View file

@ -1393,10 +1393,13 @@ DesktopButtonsView::DesktopButtonsView(QWidget *parent)
for (const QString &importPath : KGlobal::dirs()->findDirs("module", QStringLiteral("imports"))) {
engine()->addImportPath(importPath);
}
#warning Port declarative code to QtQuick2
#if KWIN_QT5_PORTING
KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine());
kdeclarative.initialize();
kdeclarative.setupBindings();
#endif
rootContext()->setContextProperty(QStringLiteral("add"), QVariant(true));
rootContext()->setContextProperty(QStringLiteral("remove"), QVariant(true));

View file

@ -1950,10 +1950,13 @@ CloseWindowView::CloseWindowView(QWidget *parent)
for (const QString &importPath : KGlobal::dirs()->findDirs("module", QStringLiteral("imports"))) {
engine()->addImportPath(importPath);
}
#warning Port declarative code to QtQuick2
#if KWIN_QT5_PORTING
KDeclarative kdeclarative;
kdeclarative.setDeclarativeEngine(engine());
kdeclarative.initialize();
kdeclarative.setupBindings();
#endif
rootContext()->setContextProperty(QStringLiteral("armed"), QVariant(false));