Populate text-edit with run-time info from update-process.
This commit is contained in:
17
mainwindow.h
17
mainwindow.h
@@ -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
|
||||
|
Reference in New Issue
Block a user