2018-01-31 21:54:25 +01:00
|
|
|
#include "src/mainwindow.h"
|
|
|
|
#include <QApplication>
|
2018-02-18 16:46:47 +01:00
|
|
|
#include <QStringList>
|
2018-02-19 23:07:04 +01:00
|
|
|
#include "qt_windows.h"
|
2018-01-31 21:54:25 +01:00
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
int main(int argc, char* argv[])
|
2018-01-31 21:54:25 +01:00
|
|
|
{
|
2018-02-12 15:35:08 +01:00
|
|
|
//QCoreApplication::addLibraryPath("C:/msys64/mingw64/bin");
|
2018-02-19 23:07:04 +01:00
|
|
|
//SetDllDirectory((LPCWSTR)L"C:\\msys64\\mingw64\\bin");
|
2018-02-18 16:46:47 +01:00
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
QApplication::setAttribute(Qt::AA_UseOpenGLES);
|
2018-01-31 21:54:25 +01:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
QStringList argumentList = a.arguments();
|
|
|
|
|
|
|
|
if(argumentList.length() != 3) {
|
|
|
|
return -3;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ok = false;
|
|
|
|
int monitor = argumentList.at(1).toInt(&ok);
|
|
|
|
|
|
|
|
if (!ok) {
|
|
|
|
return -4;
|
|
|
|
}
|
2018-02-14 10:21:15 +01:00
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
MainWindow w(monitor,argumentList.at(2));
|
2018-02-19 23:07:04 +01:00
|
|
|
//MainWindow w(0,"D:/672870/827148653");
|
2018-01-31 21:54:25 +01:00
|
|
|
return a.exec();
|
|
|
|
}
|