diff --git a/app/lattecorona.cpp b/app/lattecorona.cpp index 78b3a6ded..bc89c8185 100644 --- a/app/lattecorona.cpp +++ b/app/lattecorona.cpp @@ -1106,6 +1106,7 @@ void Corona::setBroadcastedBackgroundsEnabled(QString activity, QString screenNa inline void Corona::qmlRegisterTypes() const { +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) qmlRegisterType(); qmlRegisterType(); qmlRegisterType(); @@ -1113,6 +1114,15 @@ inline void Corona::qmlRegisterTypes() const qmlRegisterType(); qmlRegisterType(); qmlRegisterType(); +#else + qmlRegisterAnonymousType("latte-dock", 1); + qmlRegisterAnonymousType("latte-dock", 1); + qmlRegisterAnonymousType("latte-dock", 1); + qmlRegisterAnonymousType("latte-dock", 1); + qmlRegisterAnonymousType("latte-dock", 1); + qmlRegisterAnonymousType("latte-dock", 1); + qmlRegisterAnonymousType("latte-dock", 1); +#endif } }