2020-06-24 19:30:39 +01:00
|
|
|
#include "tegrarcmgui.h"
|
|
|
|
|
|
|
|
#include <QApplication>
|
2020-06-24 19:31:54 +01:00
|
|
|
#include <QTranslator>
|
|
|
|
|
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-06-24 19:30:39 +01:00
|
|
|
TegraRcmGUI w;
|
2020-06-24 19:31:54 +01:00
|
|
|
w.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
|
2020-06-24 19:30:39 +01:00
|
|
|
w.show();
|
|
|
|
return a.exec();
|
|
|
|
}
|