Fix the Plastik decoration with Qt 5.15

The trick in qmldir no longer works with Qt 5.15, so use a more reliable
approach. This way works with Qt 5.15 and also on previous versions of Qt.
This commit is contained in:
Fabian Vogt 2020-06-07 18:05:21 +02:00
parent ccd0677bb1
commit ec602e0c2a
2 changed files with 2 additions and 4 deletions

View file

@ -20,7 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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)

View file

@ -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