ESGRAF48/source/ESGRAF48.cpp

22 lines
351 B
C++
Raw Permalink Normal View History

2018-05-10 16:41:14 +00:00
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
std::unique_ptr<MainWindow> mainWindow;
if (argc < 2)
{
mainWindow = std::make_unique<MainWindow>(nullptr);
}
else
{
mainWindow = std::make_unique<MainWindow>(nullptr, argv[1]);
}
mainWindow->show();
2018-05-10 16:41:14 +00:00
return app.exec();
}