diff --git a/src/kcmkwin/kwintabbox/layoutpreview.cpp b/src/kcmkwin/kwintabbox/layoutpreview.cpp index 3ed2e25c76..aa8b6bb83e 100644 --- a/src/kcmkwin/kwintabbox/layoutpreview.cpp +++ b/src/kcmkwin/kwintabbox/layoutpreview.cpp @@ -33,6 +33,8 @@ LayoutPreview::LayoutPreview(const QString &path, bool showDesktopThumbnail, QOb QQmlComponent *component = new QQmlComponent(engine, this); qmlRegisterType("org.kde.kwin", 2, 0, "ThumbnailItem"); qmlRegisterType("org.kde.kwin", 2, 0, "Switcher"); + qmlRegisterType("org.kde.kwin", 3, 0, "WindowThumbnailItem"); + qmlRegisterType("org.kde.kwin", 3, 0, "TabBoxSwitcher"); qmlRegisterType(); component->loadUrl(QUrl::fromLocalFile(path)); if (component->isError()) { diff --git a/src/tabbox/tabboxhandler.cpp b/src/tabbox/tabboxhandler.cpp index 80de2285aa..494699af17 100644 --- a/src/tabbox/tabboxhandler.cpp +++ b/src/tabbox/tabboxhandler.cpp @@ -291,6 +291,7 @@ void TabBoxHandlerPrivate::show() #ifndef KWIN_UNIT_TEST if (m_qmlContext.isNull()) { qmlRegisterType("org.kde.kwin", 2, 0, "Switcher"); + qmlRegisterType("org.kde.kwin", 3, 0, "TabBoxSwitcher"); m_qmlContext.reset(new QQmlContext(Scripting::self()->qmlEngine())); } if (m_qmlComponent.isNull()) {