fort/src/ui/main.cpp

22 lines
498 B
C++
Raw Normal View History

2017-08-23 13:52:22 +00:00
#include <QGuiApplication>
2017-09-01 13:13:12 +00:00
#include <QQmlEngine>
#include "conf/firewallconf.h"
#include "fortsettings.h"
#include "fortwindow.h"
2017-08-23 13:52:22 +00:00
int main(int argc, char *argv[])
{
2017-09-01 13:13:12 +00:00
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
2017-08-23 13:52:22 +00:00
QGuiApplication app(argc, argv);
2017-09-01 13:13:12 +00:00
FirewallConf firewallConf;
FortSettings fortSettings(qApp->arguments());
fortSettings.readConf(firewallConf);
FortWindow fortWindow(&firewallConf, &fortSettings);
fortWindow.show();
2017-08-23 13:52:22 +00:00
return app.exec();
}