Typica is a free program for professional coffee roasters. https://typica.us
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

main.cpp 553B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @file main.cpp
  3. * @brief Main file.
  4. * @author Micha? Policht
  5. */
  6. #include <QApplication>
  7. #include "MainWindow.h"
  8. #include "MessageWindow.h"
  9. int main(int argc, char *argv[])
  10. {
  11. QApplication app(argc, argv);
  12. //! [0]
  13. #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
  14. //redirect debug messages to the MessageWindow dialog
  15. qInstallMsgHandler(MessageWindow::AppendMsgWrapper);
  16. #else
  17. qInstallMessageHandler(MessageWindow::AppendMsgWrapper);
  18. #endif
  19. //! [0]
  20. MainWindow mainWindow;
  21. mainWindow.show();
  22. return app.exec();
  23. }