diff options
author | rtk0c <[email protected]> | 2022-06-30 21:00:37 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-30 21:00:37 -0700 |
commit | 26a894a1ebdc943cb04cb7455345566b65768d9c (patch) | |
tree | ce0270885fcd99ccedc23e7d74c1aeb7c7968324 /source | |
parent | d77b11b20dcd9e6c5adbc541f29bf5cdde9db1d0 (diff) |
Rearrange project, add .clang-format and .clang-tidy
Diffstat (limited to 'source')
-rw-r--r-- | source/main.cpp | 31 | ||||
-rw-r--r-- | source/qml/main.qml | 8 |
2 files changed, 0 insertions, 39 deletions
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 <QGuiApplication> -#include <QQmlApplicationEngine> - -#include <QLocale> -#include <QTranslator> - -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(); -} diff --git a/source/qml/main.qml b/source/qml/main.qml deleted file mode 100644 index 41424f8..0000000 --- a/source/qml/main.qml +++ /dev/null @@ -1,8 +0,0 @@ -import QtQuick - -Window { - width: 640 - height: 480 - visible: true - title: qsTr("Hello World") -} |