comparison widgets/ProgressDialog.cpp @ 1268:05d12869043e

Formatting changes to align more with SV style conventions
author Lucas Thompson <dev@lucas.im>
date Tue, 17 Apr 2018 10:47:38 +0100
parents b68f3162b5a8
children c8a6fd3f9dff
comparison
equal deleted inserted replaced
1267:b68f3162b5a8 1268:05d12869043e
17 17
18 #include <QProgressDialog> 18 #include <QProgressDialog>
19 #include <QApplication> 19 #include <QApplication>
20 #include <QTimer> 20 #include <QTimer>
21 21
22 ProgressDialog::ProgressDialog( 22 ProgressDialog::ProgressDialog(QString message,
23 QString message, 23 bool cancellable,
24 bool cancellable, 24 int timeBeforeShow,
25 int timeBeforeShow, 25 QWidget *parent,
26 QWidget *parent, 26 Qt::WindowModality modality) :
27 Qt::WindowModality modality
28 ) :
29 m_showTimer(0), 27 m_showTimer(0),
30 m_timerElapsed(false), 28 m_timerElapsed(false),
31 m_cancelled(false) 29 m_cancelled(false)
32 { 30 {
33 m_dialog = new QProgressDialog(message, cancellable ? tr("Cancel") : 0, 31 m_dialog = new QProgressDialog(message, cancellable ? tr("Cancel") : 0,