FemaLocalSoftware/main.cpp
Lopata PC 9e459078e1 SensorTab all Done
paginationBar Done
2024-12-16 11:38:04 +03:00

29 lines
697 B
C++

#include "mainwindow.h"
#include "sensordialog.h"
#include <QApplication>
#include <QLocale>
#include <QTranslator>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QHeaderView>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTranslator translator;
const QStringList uiLanguages = QLocale::system().uiLanguages();
for (const QString &locale : uiLanguages) {
const QString baseName = "FemaSoftware_" + QLocale(locale).name();
if (translator.load(":/i18n/" + baseName)) {
a.installTranslator(&translator);
break;
}
}
MainWindow w;
w.show();
return a.exec();
}