1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 16:32:33 +02:00
ScreenPlay/ScreenPlayWindow/SPWmain.cpp
2018-03-11 22:33:33 +01:00

32 lines
649 B
C++

#include "src/SPWmainwindow.h"
#include <QApplication>
#include <QStringList>
#ifdef Q_OS_WIN
#include <qt_windows.h>
#endif
int main(int argc, char* argv[])
{
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseOpenGLES);
QApplication a(argc, argv);
QStringList argumentList = a.arguments();
if(argumentList.length() != 3) {
return -3;
}
bool ok = false;
int monitor = argumentList.at(1).toInt(&ok);
if (!ok) {
return -4;
}
MainWindow w(monitor,argumentList.at(2));
//MainWindow w(0,"D:/672870/827148653");
return a.exec();
}