build: back to cmake.
This commit is contained in:
17
Gui/main.cpp
17
Gui/main.cpp
@@ -5,24 +5,9 @@
|
||||
|
||||
#include "frelayGUI.h"
|
||||
|
||||
#ifndef NO_CRASHELPER
|
||||
#include <crashelper.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
||||
#ifndef NO_CRASHELPER
|
||||
auto configDir = Util::GetCurConfigPath("frelay");
|
||||
#ifdef _WIN32
|
||||
backward::SetDumpFileSavePath(configDir + "/dumpfile");
|
||||
backward::SetDumpLogSavePath(configDir + "/dumplog");
|
||||
#else
|
||||
backward::SetDumpLogSavePath(configDir + QDir::separator() + "dumplog");
|
||||
#endif
|
||||
CRASHELPER_MARK_ENTRY();
|
||||
#endif
|
||||
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
#endif
|
||||
@@ -32,7 +17,7 @@ int main(int argc, char* argv[])
|
||||
#ifdef _WIN32
|
||||
QFont font("Microsoft YaHei", 9);
|
||||
a.setFont(font);
|
||||
//a.setStyle("fusion");
|
||||
// a.setStyle("fusion");
|
||||
a.setStyle("windows");
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user