diff --git a/scripting/scripting.cpp b/scripting/scripting.cpp index 89822b6639..84de5c8251 100644 --- a/scripting/scripting.cpp +++ b/scripting/scripting.cpp @@ -545,11 +545,14 @@ void KWin::DeclarativeScript::run() return; } // add read config +#warning DeclarativeScripts needs porting of KDeclarative +#if KWIN_QT5_PORTING KDeclarative kdeclarative; kdeclarative.setDeclarativeEngine(m_engine); kdeclarative.initialize(); kdeclarative.setupBindings(); installScriptFunctions(kdeclarative.scriptEngine()); +#endif qmlRegisterType("org.kde.kwin", 0, 1, "DesktopThumbnailItem"); qmlRegisterType("org.kde.kwin", 0, 1, "ThumbnailItem"); qmlRegisterType(); diff --git a/tabbox/declarative.cpp b/tabbox/declarative.cpp index 7c13c63def..f10e8d09bb 100644 --- a/tabbox/declarative.cpp +++ b/tabbox/declarative.cpp @@ -134,10 +134,13 @@ DeclarativeView::DeclarativeView(QAbstractItemModel *model, TabBoxConfig::TabBox pal.setColor(backgroundRole(), Qt::transparent); setPalette(pal); engine()->addImageProvider(QLatin1String("client"), new ImageProvider(model)); +#warning TabBox needs porting of KDeclarative +#if KWIN_QT5_PORTING KDeclarative kdeclarative; kdeclarative.setDeclarativeEngine(engine()); kdeclarative.initialize(); kdeclarative.setupBindings(); +#endif #ifndef TABBOX_KCM qmlRegisterType("org.kde.kwin", 0, 1, "DesktopThumbnailItem"); #endif