diff --git a/src/kcm.cpp b/src/kcm.cpp --- a/src/kcm.cpp +++ b/src/kcm.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -51,8 +52,13 @@ KCMPlymouth::KCMPlymouth(QObject* parent, const QVariantList& args) : KQuickAddons::ConfigModule(parent, args) { +#if (QT_VERSION < QT_VERSION_CHECK(5,14,0)) qmlRegisterType(); qmlRegisterType(); +#else + qmlRegisterAnonymousType("KCMPlymouth", 1); + qmlRegisterAnonymousType("KCMPlymouth", 1); +#endif KAboutData* about = new KAboutData(QStringLiteral("kcm_plymouth"), i18n("Boot Splash Screen"), QStringLiteral(PLYMOUTH_KCM_VERSION), QString(), KAboutLicense::LGPL); about->addAuthor(i18n("Marco Martin"), QString(), QStringLiteral("mart@kde.org"));