From 26a894a1ebdc943cb04cb7455345566b65768d9c Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 30 Jun 2022 21:00:37 -0700 Subject: Rearrange project, add .clang-format and .clang-tidy --- source/main.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 source/main.cpp (limited to 'source/main.cpp') diff --git a/source/main.cpp b/source/main.cpp deleted file mode 100644 index 699e881..0000000 --- a/source/main.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include -#include - -#include -#include - -int main(int argc, char *argv[]) -{ - QGuiApplication app(argc, argv); - - QTranslator translator; - const QStringList uiLanguages = QLocale::system().uiLanguages(); - for (const QString &locale : uiLanguages) { - const QString baseName = "qcplt_" + QLocale(locale).name(); - if (translator.load(":/i18n/" + baseName)) { - app.installTranslator(&translator); - break; - } - } - - QQmlApplicationEngine engine; - const QUrl url(u"qrc:/qcplt/main.qml"_qs); - QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, - &app, [url](QObject *obj, const QUrl &objUrl) { - if (!obj && url == objUrl) - QCoreApplication::exit(-1); - }, Qt::QueuedConnection); - engine.load(url); - - return app.exec(); -} -- cgit v1.2.3-70-g09d2