diff --git a/mainwindow.h b/mainwindow.h --- a/mainwindow.h +++ b/mainwindow.h @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "portcontrol.h" @@ -46,6 +47,9 @@ public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); + void messageHandler(QtMsgType type, const QMessageLogContext &context, + const QString &msg); + private: enum NumberFormat {