refactored machinestatus to update the qstatusbar

This commit is contained in:
Joakim L. Gilje
2021-11-30 22:06:41 +01:00
parent a6f8e6b68e
commit cee1c93d49
5 changed files with 89 additions and 98 deletions

View File

@@ -3,12 +3,14 @@
#include <QMainWindow>
#include <QLabel>
#include <qevent.h>
#include <QEvent>
namespace Ui {
class MainWindow;
}
class MachineStatus;
class MainWindow : public QMainWindow
{
Q_OBJECT
@@ -48,6 +50,7 @@ protected:
void keyReleaseEvent(QKeyEvent* event) override;
private:
Ui::MainWindow *ui;
std::unique_ptr<MachineStatus> status;
};
#endif // QT_MAINWINDOW_HPP