From 164219ac20939f6bf70eaaca1c06a68f8e34baf0 Mon Sep 17 00:00:00 2001 From: reionwong Date: Mon, 26 Jul 2021 01:40:13 +0800 Subject: [PATCH] Compatible with Qt 5.12 --- main.cpp | 2 +- model/foldermodel.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index e5da074..c4ede89 100644 --- a/main.cpp +++ b/main.cpp @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) qmlRegisterType(uri, 1, 0, "DesktopSettings"); qmlRegisterType(uri, 1, 0, "Fm"); qmlRegisterType(uri, 1, 0, "ShortCut"); - qmlRegisterAnonymousType(uri, 1); + // qmlRegisterAnonymousType(uri, 1); QCommandLineParser parser; parser.setApplicationDescription(QStringLiteral("File Manager")); diff --git a/model/foldermodel.h b/model/foldermodel.h index b892699..a5027f0 100644 --- a/model/foldermodel.h +++ b/model/foldermodel.h @@ -32,6 +32,7 @@ #include #include #include +#include #include #include