--- a/src/dialogs.cpp Fri May 24 03:22:11 2013 +0300 +++ b/src/dialogs.cpp Fri May 24 03:34:09 2013 +0300 @@ -480,7 +480,7 @@ // ============================================================================= // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ============================================================================= -OpenFileDialog::OpenFileDialog (QWidget* parent, Qt::WindowFlags f) : QDialog (parent, f) { +OpenProgressDialog::OpenProgressDialog (QWidget* parent, Qt::WindowFlags f) : QDialog (parent, f) { progressBar = new QProgressBar; progressText = new QLabel; setNumLines (0); @@ -496,17 +496,17 @@ layout->addWidget (dbb_buttons); } -void OpenFileDialog::callback_setNumLines () { +void OpenProgressDialog::callback_setNumLines () { progressBar->setRange (0, numLines ()); updateValues (); } -void OpenFileDialog::updateValues () { +void OpenProgressDialog::updateValues () { progressBar->setValue (progress ()); - progressText->setText (fmt ("%s: %lu/%lu lines parsed", fileName ().c (), progress (), numLines ())); + progressText->setText (fmt ("%lu/%lu lines parsed", progress (), numLines ())); } -void OpenFileDialog::updateProgress (int progress) { +void OpenProgressDialog::updateProgress (int progress) { m_progress = progress; updateValues (); } \ No newline at end of file