AntiClipSettings/main.cpp

21 lines
719 B
C++
Raw Normal View History

2024-08-13 20:06:10 +08:00
#include "Application.h"
#include "BoostLog.h"
#include "Configuration.h"
2024-08-13 09:54:41 +08:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
2024-08-21 09:26:06 +08:00
#include <QQuickStyle>
2024-08-24 22:35:35 +08:00
#include <QQuickWindow>
2024-08-13 09:54:41 +08:00
2024-08-13 20:06:10 +08:00
int main(int argc, char *argv[]) {
using namespace Amass;
boost::log::initialize("logs/app");
LOG(info) << "Compiled on: " << __DATE__ << " " << __TIME__ << std::endl;
LOG(info) << "Git commit ID: " << GIT_COMMIT_ID << std::endl;
LOG(info) << "Program version: " << APP_VERSION << std::endl;
2024-08-13 09:54:41 +08:00
2024-08-13 20:06:10 +08:00
auto app = Singleton<Application>::instance<Construct>(argc, argv);
2024-08-21 16:03:49 +08:00
QQuickStyle::setStyle("Material");
2024-08-24 22:35:35 +08:00
// QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenVG);
2024-08-13 20:06:10 +08:00
return app->exec();
2024-08-13 09:54:41 +08:00
}