|
|
|
|
@ -40,12 +40,17 @@ int main(int argc, char *argv[])
|
|
|
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
|
|
|
|
|
|
QByteArray uri = "Cutefish.Launcher";
|
|
|
|
|
qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1);
|
|
|
|
|
qmlRegisterUncreatableType<LauncherItem>(uri, 1, 0, "LauncherItem", "cannot init application");
|
|
|
|
|
qmlRegisterType<LauncherModel>(uri, 1, 0, "LauncherModel");
|
|
|
|
|
qmlRegisterType<PageModel>(uri, 1, 0, "PageModel");
|
|
|
|
|
qmlRegisterType<IconItem>(uri, 1, 0, "IconItem");
|
|
|
|
|
|
|
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
|
|
|
|
qmlRegisterType<QAbstractItemModel>();
|
|
|
|
|
#else
|
|
|
|
|
qmlRegisterAnonymousType<QAbstractItemModel>(uri, 0);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
app.setApplicationName(QStringLiteral("cutefish-launcher"));
|
|
|
|
|
|
|
|
|
|
|