Populate text-edit with run-time info from update-process.

This commit is contained in:
2023-08-02 15:29:10 +02:00
parent eb7d77692b
commit b3f4a4086b
2 changed files with 84 additions and 39 deletions

View File

@@ -2,12 +2,14 @@
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class Worker;
#include "worker.h"
class MainWindow : public QMainWindow {
Q_OBJECT
@@ -15,12 +17,21 @@ public:
MainWindow(Worker *worker, QWidget *parent = nullptr);
~MainWindow();
public slots:
void onAppendText(QString, QString);
void onShowErrorMessage(QString, QString);
void onSetProgress(quint8);
void onStopStartTimer();
void onRestartExitTimer();
private slots:
void onStartClicked();
void onExitClicked();
void onQuit();
private:
Ui::MainWindow *ui;
Worker *m_worker;
int m_width;
QTimer *m_startTimer;
QTimer *m_exitTimer;
};
#endif // MAINWINDOW_H