Force progressbar to be visible when checking starts.

This commit is contained in:
Vesa Pikki 2009-06-09 11:21:17 +03:00
parent b67424785f
commit 398c81f4a8
3 changed files with 15 additions and 1 deletions

View File

@ -227,6 +227,8 @@ void MainWindow::DoCheckFiles(QFileDialog::FileMode mode)
return;
}
mResults.CheckingStarted();
mThread.SetFiles(RemoveUnacceptedFiles(fileNames));
mSettings.setValue(tr("Check path"), dialog.directory().absolutePath());
EnableCheckButtons(false);

View File

@ -82,7 +82,7 @@ void ResultsView::Progress(int value, int max)
} //If we have errors but they aren't visible, tell user about it
else if (!mTree->VisibleErrors())
{
QString text = tr("Errors found from the file, but they are configured to be hidden.\n"\
QString text = tr("Errors were found, but they are configured to be hidden.\n"\
"To toggle what kind of errors are shown, open view menu.");
QMessageBox msg(QMessageBox::Information,
tr("Cppcheck"),
@ -161,3 +161,9 @@ void ResultsView::SetCheckDirectory(const QString &dir)
mTree->SetCheckDirectory(dir);
}
void ResultsView::CheckingStarted()
{
mProgress->setVisible(true);
}

View File

@ -83,6 +83,12 @@ public:
*/
void SetCheckDirectory(const QString &dir);
/**
* @brief Inform the view that checking has started
*
* At the moment this only displays the progressbar
*/
void CheckingStarted();
signals:
/**