diff --git a/main.cpp b/main.cpp index 86ead10..8c64a99 100644 --- a/main.cpp +++ b/main.cpp @@ -71,7 +71,12 @@ int main(int argc, char *argv[]) qmlRegisterType(uri, 1, 0, "DesktopSettings"); qmlRegisterType(uri, 1, 0, "Fm"); qmlRegisterType(uri, 1, 0, "ShortCut"); + +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) + qmlRegisterType(); +#else qmlRegisterAnonymousType(uri, 1); +#endif QCommandLineParser parser; parser.setApplicationDescription(QStringLiteral("File Manager"));