1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00
ScreenPlay/ScreenPlayWindow/SPWmain.cpp

31 lines
771 B
C++
Raw Normal View History

#include "src/SPWmainwindow.h"
#include <QApplication>
2018-02-18 16:46:47 +01:00
#include <QStringList>
2018-02-18 16:46:47 +01:00
int main(int argc, char* argv[])
{
2018-02-18 16:46:47 +01:00
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseOpenGLES);
2018-03-21 18:56:58 +01:00
QApplication a(argc, argv);
2018-02-18 16:46:47 +01:00
QStringList argumentList = a.arguments();
if(argumentList.length() != 7) {
2018-02-18 16:46:47 +01:00
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-03-12 16:21:19 +01:00
// Args: which monitor, path to project, wallpaper secret to identify the connected socket
MainWindow w(monitor,argumentList.at(2), argumentList.at(3),argumentList.at(4),argumentList.at(5),argumentList.at(6));
//MainWindow w(0,"D:/672870/827148653");
return a.exec();
}