TegraRcmGUI/main.cpp

21 lines
649 B
C++
Raw Normal View History

2020-06-24 14:30:39 -04:00
#include "tegrarcmgui.h"
#include <QApplication>
2020-06-24 14:31:54 -04:00
#include <QTranslator>
2020-12-11 08:46:53 -03:00
2020-06-24 14:30:39 -04:00
int main(int argc, char *argv[])
{
2020-06-24 14:31:54 -04:00
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
2020-06-24 14:30:39 -04:00
QApplication a(argc, argv);
2020-06-24 14:31:54 -04: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 08:46:53 -03:00
2020-06-24 14:30:39 -04:00
TegraRcmGUI w;
2020-12-11 08:46:53 -03:00
w.setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
2020-06-24 14:30:39 -04:00
w.show();
return a.exec();
}