comparison widgets/ProgressDialog.h @ 1414:fa986b91d77f

Merge from branch fix-static-analysis
author Chris Cannam
date Wed, 09 Jan 2019 15:24:51 +0000
parents 05d614f6e46d
children 3607b0092019
comparison
equal deleted inserted replaced
1413:0930a27ebea2 1414:fa986b91d77f
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _PROGRESS_DIALOG_H_ 16 #ifndef SV_PROGRESS_DIALOG_H
17 17
18 #include "base/ProgressReporter.h" 18 #include "base/ProgressReporter.h"
19 19
20 class QProgressDialog; 20 class QProgressDialog;
21 class QTimer; 21 class QTimer;
30 int timeBeforeShow = 0, 30 int timeBeforeShow = 0,
31 QWidget *parent = 0, 31 QWidget *parent = 0,
32 Qt::WindowModality modality = Qt::NonModal); 32 Qt::WindowModality modality = Qt::NonModal);
33 virtual ~ProgressDialog(); 33 virtual ~ProgressDialog();
34 34
35 virtual bool isDefinite() const; 35 bool isDefinite() const override;
36 virtual void setDefinite(bool definite); 36 void setDefinite(bool definite) override;
37 37
38 virtual bool wasCancelled() const; 38 bool wasCancelled() const override;
39 39
40 signals: 40 signals:
41 void showing(); 41 void showing();
42 void cancelled(); 42 void cancelled();
43 43
44 public slots: 44 public slots:
45 virtual void setMessage(QString text); 45 void setMessage(QString text) override;
46 virtual void setProgress(int percentage); 46 void setProgress(int percentage) override;
47 47
48 protected slots: 48 protected slots:
49 virtual void showTimerElapsed(); 49 virtual void showTimerElapsed();
50 void canceled(); 50 void canceled();
51 51