Thermostat pour piloter jusqu'à 4 radiateurs avec fil pilote
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.0 KiB

  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. /*
  3. * Qt mutizone MQTT thermostat
  4. *
  5. * Copyright (C) 2019 Richard Genoud
  6. *
  7. */
  8. #include <QCoreApplication>
  9. #include <QApplication>
  10. #include <QInputDialog>
  11. #include <QTranslator>
  12. #include "mqttclient.h"
  13. #include "mainwindow.h"
  14. int main(int argc, char *argv[])
  15. {
  16. QTranslator qtTranslator;
  17. QTranslator translator;
  18. Q_INIT_RESOURCE(thermostat);
  19. QApplication a(argc, argv);
  20. a.setApplicationVersion(VERSION);
  21. QCoreApplication::setOrganizationName("Sorico");
  22. QCoreApplication::setOrganizationDomain("sorico.fr");
  23. QCoreApplication::setApplicationName("Thermostat");
  24. /*
  25. * Init l10n
  26. */
  27. if (qtTranslator.load("qt_" + QLocale::system().name(),
  28. QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
  29. a.installTranslator(&qtTranslator);
  30. if (translator.load(":/lang/thermostat_" + QLocale::system().name() + ".qm"))
  31. a.installTranslator(&translator);
  32. MainWindow w;
  33. w.showFullScreen();
  34. return a.exec();
  35. }
  36. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */