2019-10-09 19:32:44 +02:00
|
|
|
/*******************************************
|
|
|
|
* Zira Editor
|
|
|
|
* A lightweight PHP Editor
|
|
|
|
* (C)2019 https://github.com/ziracms/editor
|
|
|
|
*******************************************/
|
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
2020-10-30 11:22:47 +01:00
|
|
|
#include "settings.h"
|
2020-06-30 21:52:49 +02:00
|
|
|
#include "helper.h"
|
|
|
|
|
2019-10-09 19:32:44 +02:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2020-10-30 11:22:47 +01:00
|
|
|
Helper::setApplicationAttributes();
|
2019-10-09 19:32:44 +02:00
|
|
|
int exitCode = 0;
|
|
|
|
do {
|
2020-10-30 11:22:47 +01:00
|
|
|
Settings::initApplicationScaling();
|
2019-10-09 19:32:44 +02:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
MainWindow w;
|
|
|
|
w.show();
|
|
|
|
exitCode = a.exec();
|
2020-07-01 17:16:29 +02:00
|
|
|
} while(MainWindow::WANT_RESTART);
|
2019-10-09 19:32:44 +02:00
|
|
|
return exitCode;
|
|
|
|
}
|