Disable KDeclarative for the port
This commit is contained in:
parent
053841f87f
commit
bbaefd2f68
2 changed files with 6 additions and 0 deletions
|
@ -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<DesktopThumbnailItem>("org.kde.kwin", 0, 1, "DesktopThumbnailItem");
|
||||
qmlRegisterType<WindowThumbnailItem>("org.kde.kwin", 0, 1, "ThumbnailItem");
|
||||
qmlRegisterType<KWin::ScriptingClientModel::ClientModel>();
|
||||
|
|
|
@ -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<DesktopThumbnailItem>("org.kde.kwin", 0, 1, "DesktopThumbnailItem");
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue