Disable KDeclarative in PresentWindows and DesktopGrid
QML code needs porting to QtQuick2
This commit is contained in:
parent
ba7d50fdc5
commit
5e0484bc17
2 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue