Advance the progress bar in the foreground when a long running task
in the background (e.g. git clone).
This commit is contained in:
@@ -20,6 +20,11 @@ public:
|
||||
MainWindow(Worker *worker, QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
static const int START_PROGRESS_LOOP = -1;
|
||||
static const int STOP_PROGRESS_LOOP = -2;
|
||||
|
||||
int progressValue() const { return m_progressValue; }
|
||||
|
||||
public slots:
|
||||
void onAppendText(QString, QString suffix = "");
|
||||
void onReplaceLast(QString, QString);
|
||||
@@ -38,5 +43,7 @@ private:
|
||||
int m_width;
|
||||
QTimer *m_startTimer;
|
||||
QTimer *m_exitTimer;
|
||||
bool m_progressRunning;
|
||||
int m_progressValue;
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
|
Reference in New Issue
Block a user