1
0
Fork 0
mirror of https://github.com/eliboa/TegraRcmGUI.git synced 2024-11-08 11:51:45 +00:00
TegraRcmGUI/main.cpp

21 lines
649 B
C++
Raw Normal View History

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();
}