From 7e96b65c1bb233245551ffb884589c4b730228d8 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sat, 9 Sep 2023 14:38:53 +0200 Subject: [PATCH] Move m_update-object to main window. Add signal for showing status messages at status bar of ATBUpdateTool gui. --- worker.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/worker.h b/worker.h index 3907c25..2ecadfb 100644 --- a/worker.h +++ b/worker.h @@ -88,7 +88,6 @@ class Worker : public QObject { QObject *m_parent; QString const m_serialInterface; QString const m_baudrate; - Update *m_update; IsmasClient m_ismasClient; GitClient m_gc; QString const m_osVersion; @@ -164,6 +163,9 @@ public: int zoneNr() const { return m_zoneNr; } QString apismVersion() const { return m_apismVersion; } + MainWindow *mainWindow() { return m_mainWindow; } + MainWindow const *mainWindow() const { return m_mainWindow; } + //friend QDebug operator<<(QDebug debug, Worker const &w) { // Q_UNUSED(w); // return debug; @@ -178,6 +180,7 @@ signals: void replaceLast(QString, QString); void replaceLast(QStringList, QString); void showErrorMessage(QString title, QString description); + void showStatusMessage(QString title, QString description); void stopStartTimer(); void restartExitTimer(); void enableExit();