Force progressbar to be visible when checking starts.
This commit is contained in:
parent
b67424785f
commit
398c81f4a8
|
@ -227,6 +227,8 @@ void MainWindow::DoCheckFiles(QFileDialog::FileMode mode)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mResults.CheckingStarted();
|
||||||
|
|
||||||
mThread.SetFiles(RemoveUnacceptedFiles(fileNames));
|
mThread.SetFiles(RemoveUnacceptedFiles(fileNames));
|
||||||
mSettings.setValue(tr("Check path"), dialog.directory().absolutePath());
|
mSettings.setValue(tr("Check path"), dialog.directory().absolutePath());
|
||||||
EnableCheckButtons(false);
|
EnableCheckButtons(false);
|
||||||
|
|
|
@ -82,7 +82,7 @@ void ResultsView::Progress(int value, int max)
|
||||||
} //If we have errors but they aren't visible, tell user about it
|
} //If we have errors but they aren't visible, tell user about it
|
||||||
else if (!mTree->VisibleErrors())
|
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.");
|
"To toggle what kind of errors are shown, open view menu.");
|
||||||
QMessageBox msg(QMessageBox::Information,
|
QMessageBox msg(QMessageBox::Information,
|
||||||
tr("Cppcheck"),
|
tr("Cppcheck"),
|
||||||
|
@ -161,3 +161,9 @@ void ResultsView::SetCheckDirectory(const QString &dir)
|
||||||
mTree->SetCheckDirectory(dir);
|
mTree->SetCheckDirectory(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ResultsView::CheckingStarted()
|
||||||
|
{
|
||||||
|
mProgress->setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,12 @@ public:
|
||||||
*/
|
*/
|
||||||
void SetCheckDirectory(const QString &dir);
|
void SetCheckDirectory(const QString &dir);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Inform the view that checking has started
|
||||||
|
*
|
||||||
|
* At the moment this only displays the progressbar
|
||||||
|
*/
|
||||||
|
void CheckingStarted();
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue