Compatible with Qt 5.12

This commit is contained in:
reionwong 2021-07-26 01:40:13 +08:00
parent 7996e01f58
commit 164219ac20
2 changed files with 2 additions and 1 deletions

View file

@ -68,7 +68,7 @@ int main(int argc, char *argv[])
qmlRegisterType<DesktopSettings>(uri, 1, 0, "DesktopSettings");
qmlRegisterType<Fm>(uri, 1, 0, "Fm");
qmlRegisterType<ShortCut>(uri, 1, 0, "ShortCut");
qmlRegisterAnonymousType<QAction>(uri, 1);
// qmlRegisterAnonymousType<QAction>(uri, 1);
QCommandLineParser parser;
parser.setApplicationDescription(QStringLiteral("File Manager"));

View file

@ -32,6 +32,7 @@
#include <QItemSelectionModel>
#include <QQmlParserStatus>
#include <QQuickItem>
#include <QPointer>
#include <KDirLister>
#include <KDirModel>