Move m_update-object to main window.
Add signal for showing status messages at status bar of ATBUpdateTool gui.
This commit is contained in:
parent
276d65a9d8
commit
7e96b65c1b
5
worker.h
5
worker.h
@ -88,7 +88,6 @@ class Worker : public QObject {
|
|||||||
QObject *m_parent;
|
QObject *m_parent;
|
||||||
QString const m_serialInterface;
|
QString const m_serialInterface;
|
||||||
QString const m_baudrate;
|
QString const m_baudrate;
|
||||||
Update *m_update;
|
|
||||||
IsmasClient m_ismasClient;
|
IsmasClient m_ismasClient;
|
||||||
GitClient m_gc;
|
GitClient m_gc;
|
||||||
QString const m_osVersion;
|
QString const m_osVersion;
|
||||||
@ -164,6 +163,9 @@ public:
|
|||||||
int zoneNr() const { return m_zoneNr; }
|
int zoneNr() const { return m_zoneNr; }
|
||||||
QString apismVersion() const { return m_apismVersion; }
|
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) {
|
//friend QDebug operator<<(QDebug debug, Worker const &w) {
|
||||||
// Q_UNUSED(w);
|
// Q_UNUSED(w);
|
||||||
// return debug;
|
// return debug;
|
||||||
@ -178,6 +180,7 @@ signals:
|
|||||||
void replaceLast(QString, QString);
|
void replaceLast(QString, QString);
|
||||||
void replaceLast(QStringList, QString);
|
void replaceLast(QStringList, QString);
|
||||||
void showErrorMessage(QString title, QString description);
|
void showErrorMessage(QString title, QString description);
|
||||||
|
void showStatusMessage(QString title, QString description);
|
||||||
void stopStartTimer();
|
void stopStartTimer();
|
||||||
void restartExitTimer();
|
void restartExitTimer();
|
||||||
void enableExit();
|
void enableExit();
|
||||||
|
Loading…
Reference in New Issue
Block a user