Mercurial > hg > svgui
comparison widgets/ProgressDialog.h @ 1267:b68f3162b5a8
Accept optional modality in constructor and fix subsequent possible side effect (re-opening dialog when just cancelled)
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 17 Apr 2018 10:47:14 +0100 |
parents | 33b7f5e54d60 |
children | 05d12869043e |
comparison
equal
deleted
inserted
replaced
1266:a34a2a25907c | 1267:b68f3162b5a8 |
---|---|
23 class ProgressDialog : public ProgressReporter | 23 class ProgressDialog : public ProgressReporter |
24 { | 24 { |
25 Q_OBJECT | 25 Q_OBJECT |
26 | 26 |
27 public: | 27 public: |
28 ProgressDialog(QString message, bool cancellable, | 28 ProgressDialog( |
29 int timeBeforeShow = 0, QWidget *parent = 0); | 29 QString message, |
30 bool cancellable, | |
31 int timeBeforeShow = 0, | |
32 QWidget *parent = 0, | |
33 Qt::WindowModality modality = Qt::NonModal | |
34 ); | |
30 virtual ~ProgressDialog(); | 35 virtual ~ProgressDialog(); |
31 | 36 |
32 virtual bool isDefinite() const; | 37 virtual bool isDefinite() const; |
33 virtual void setDefinite(bool definite); | 38 virtual void setDefinite(bool definite); |
34 | 39 |