2024-11-24 09:48:52 +00:00
|
|
|
#include "mainwindow.h"
|
2024-12-16 08:38:04 +00:00
|
|
|
#include "sensordialog.h"
|
2024-12-28 17:15:48 +00:00
|
|
|
#include "alarmdialog.h"
|
2024-11-24 09:48:52 +00:00
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QLocale>
|
|
|
|
#include <QTranslator>
|
|
|
|
|
2024-12-16 08:38:04 +00:00
|
|
|
#include <QTreeWidget>
|
|
|
|
#include <QTreeWidgetItem>
|
|
|
|
#include <QHeaderView>
|
|
|
|
|
2024-11-24 09:48:52 +00:00
|
|
|
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();
|
|
|
|
}
|