#include "YBaseLib/Log.h" #include "mainwindow.h" #include "qthostinterface.h" #include #include static void InitLogging() { // set log flags #ifdef Y_BUILD_CONFIG_DEBUG g_pLog->SetConsoleOutputParams(true, nullptr, LOGLEVEL_DEBUG); g_pLog->SetFilterLevel(LOGLEVEL_DEBUG); #else g_pLog->SetConsoleOutputParams(true, nullptr, LOGLEVEL_INFO); g_pLog->SetFilterLevel(LOGLEVEL_INFO); #endif } int main(int argc, char* argv[]) { InitLogging(); QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); std::unique_ptr host_interface = std::make_unique(); std::unique_ptr window = std::make_unique(host_interface.get()); window->show(); return app.exec(); }