2018-09-24 22:25:14 +03:00
|
|
|
#include "mainwindow.h"
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
#include <QLayout>
|
2018-10-05 18:20:40 +03:00
|
|
|
#include "settings.h"
|
|
|
|
|
#include "helper.h"
|
2018-09-24 22:25:14 +03:00
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
2018-10-05 18:20:40 +03:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
ThemeHelper::applyCurrentTheme(Settings::instance());
|
2018-09-24 22:25:14 +03:00
|
|
|
|
2018-10-05 18:20:40 +03:00
|
|
|
MainWindow w;
|
|
|
|
|
w.layout()->invalidate();
|
2018-09-24 22:25:14 +03:00
|
|
|
|
2018-10-05 18:20:40 +03:00
|
|
|
w.setAttribute(Qt::WA_WState_ExplicitShowHide, false);
|
|
|
|
|
w.setAttribute(Qt::WA_WState_Hidden, true);
|
|
|
|
|
w.show();
|
|
|
|
|
|
|
|
|
|
return a.exec();
|
2018-09-24 22:25:14 +03:00
|
|
|
}
|