diff --git a/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.cpp b/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.cpp index e121d6d94..d06c448ce 100644 --- a/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.cpp +++ b/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.cpp @@ -1,31 +1,32 @@ /******************************************************************** Copyright (C) 2012 Martin Gräßlin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . *********************************************************************/ #include "plastikplugin.h" #include "plastikbutton.h" #include void PlastikPlugin::registerTypes(const char *uri) { - Q_UNUSED(uri) + // Need to register something to tell Qt that it loaded (QTBUG-84571) + qmlRegisterModule(uri, 1, 0); } void PlastikPlugin::initializeEngine(QQmlEngine *engine, const char *uri) { Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.kwin.decorations.plastik")); engine->addImageProvider(QLatin1String("plastik"), new KWin::PlastikButtonProvider()); QQmlExtensionPlugin::initializeEngine(engine, uri); } diff --git a/plugins/kdecorations/aurorae/themes/plastik/code/qmldir b/plugins/kdecorations/aurorae/themes/plastik/code/qmldir index 49a4b402d..aa7bf16b3 100644 --- a/plugins/kdecorations/aurorae/themes/plastik/code/qmldir +++ b/plugins/kdecorations/aurorae/themes/plastik/code/qmldir @@ -1,5 +1,2 @@ module org.kde.kwin.decorations.plastik plugin plastikplugin - -# we need to have at least one element of Qt is not able to find the plugin *shrug* -Foo 1.0 Foo.qml