src/dialogs/openprogressdialog.cpp

changeset 1217
314e12e23c3a
parent 968
4b93b7963456
child 1222
34def2630300
--- a/src/dialogs/openprogressdialog.cpp	Thu Jan 04 19:40:52 2018 +0200
+++ b/src/dialogs/openprogressdialog.cpp	Thu Jan 04 19:44:26 2018 +0200
@@ -20,14 +20,14 @@
 #include "ui_openprogressdialog.h"
 #include "../main.h"
 
-OpenProgressDialog::OpenProgressDialog (QWidget* parent, Qt::WindowFlags f) :
-	QDialog (parent, f),
-	ui (*new Ui_OpenProgressUI),
-	m_progress (0),
-	m_numLines (0)
+OpenProgressDialog::OpenProgressDialog(QWidget* parent, Qt::WindowFlags f) :
+	QDialog(parent, f),
+	ui(*new Ui_OpenProgressUI),
+	m_progress(0),
+	m_numLines(0)
 {
-	ui.setupUi (this);
-	ui.progressText->setText ("Parsing...");
+	ui.setupUi(this);
+	ui.progressText->setText("Parsing...");
 }
 
 OpenProgressDialog::~OpenProgressDialog()
@@ -35,20 +35,20 @@
 	delete &ui;
 }
 
-void OpenProgressDialog::setNumLines (int a)
+void OpenProgressDialog::setNumLines(int a)
 {
 	m_numLines = a;
-	ui.progressBar->setRange (0, numLines());
+	ui.progressBar->setRange(0, numLines());
 	updateValues();
 }
 
 void OpenProgressDialog::updateValues()
 {
-	ui.progressText->setText (format ("Parsing... %1 / %2", progress(), numLines()));
-	ui.progressBar->setValue (progress());
+	ui.progressText->setText(format("Parsing... %1 / %2", progress(), numLines()));
+	ui.progressBar->setValue(progress());
 }
 
-void OpenProgressDialog::setProgress (int progress)
+void OpenProgressDialog::setProgress(int progress)
 {
 	m_progress = progress;
 	updateValues();

mercurial