src/dialogs.cpp

changeset 319
d0f41342ef51
parent 315
cb0c23f35e2b
child 329
76db02dc7f60
--- a/src/dialogs.cpp	Tue Jul 02 23:02:53 2013 +0300
+++ b/src/dialogs.cpp	Tue Jul 02 23:29:57 2013 +0300
@@ -406,7 +406,7 @@
 // =============================================================================
 OpenProgressDialog::OpenProgressDialog (QWidget* parent, Qt::WindowFlags f) : QDialog (parent, f) {
 	progressBar = new QProgressBar;
-	progressText = new QLabel ("Parsing...");
+	progressText = new QLabel( "Parsing..." );
 	setNumLines (0);
 	m_progress = 0;
 	
@@ -431,7 +431,8 @@
 }
 
 void OpenProgressDialog::updateValues () {
-	progressBar->setValue (progress ());
+	progressText->setText( fmt( "Parsing... %1 / %2", progress(), numLines() ));
+	progressBar->setValue( progress() );
 }
 
 void OpenProgressDialog::updateProgress (int progress) {

mercurial