comparison base/ProgressPrinter.h @ 1586:841b2a3e606d

Merge from branch fix-static-analysis
author Chris Cannam
date Wed, 09 Jan 2019 15:24:38 +0000
parents ad5f892c0c4d
children
comparison
equal deleted inserted replaced
1585:9570ef94eaa3 1586:841b2a3e606d
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_PRINTER_H_ 16 #ifndef SV_PROGRESS_PRINTER_H
17 #define _PROGRESS_PRINTER_H_ 17 #define SV_PROGRESS_PRINTER_H
18 18
19 #include "ProgressReporter.h" 19 #include "ProgressReporter.h"
20 20
21 class ProgressPrinter : public ProgressReporter 21 class ProgressPrinter : public ProgressReporter
22 { 22 {
24 24
25 public: 25 public:
26 ProgressPrinter(QString message, QObject *parent = 0); 26 ProgressPrinter(QString message, QObject *parent = 0);
27 virtual ~ProgressPrinter(); 27 virtual ~ProgressPrinter();
28 28
29 virtual bool isDefinite() const; 29 bool isDefinite() const override;
30 virtual void setDefinite(bool definite); 30 void setDefinite(bool definite) override;
31 31
32 virtual bool wasCancelled() const { return false; } // no mechanism 32 bool wasCancelled() const override { return false; } // no mechanism
33 33
34 public slots: 34 public slots:
35 virtual void setMessage(QString); 35 void setMessage(QString) override;
36 virtual void setProgress(int); 36 void setProgress(int) override;
37 virtual void done(); 37 virtual void done();
38 38
39 protected: 39 protected:
40 QString m_prefix; 40 QString m_prefix;
41 int m_lastProgress; 41 int m_lastProgress;