2018-05-10 16:41:14 +00:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
2018-12-02 14:22:44 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|