2020-06-24 19:30:39 +01:00
|
|
|
#include "tegrarcmgui.h"
|
|
|
|
#include <QApplication>
|
2020-06-24 19:31:54 +01:00
|
|
|
#include <QTranslator>
|
|
|
|
|
2020-12-11 11:46:53 +00:00
|
|
|
|
2020-06-24 19:30:39 +01:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2020-06-24 19:31:54 +01:00
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
2020-06-24 19:30:39 +01:00
|
|
|
QApplication a(argc, argv);
|
2020-06-24 19:31:54 +01:00
|
|
|
a.setStyleSheet("QMainWindow{ border-radius: 20px; }");
|
|
|
|
QTranslator appTranslator;
|
|
|
|
//appTranslator.load(QLocale(), QLatin1String("tegrarcmgui"), QLatin1String("_"), QLatin1String(":/i18n"));
|
|
|
|
appTranslator.load("tegrarcmgui_fr", "languages");
|
|
|
|
a.installTranslator(&appTranslator);
|
2020-12-11 11:46:53 +00:00
|
|
|
|
2020-06-24 19:30:39 +01:00
|
|
|
TegraRcmGUI w;
|
2020-12-11 11:46:53 +00:00
|
|
|
w.setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
|
2020-06-24 19:30:39 +01:00
|
|
|
w.show();
|
|
|
|
return a.exec();
|
|
|
|
}
|