Output GUI project name when checking starts or restarts

This commit is contained in:
Robert Reif 2011-06-04 08:38:51 -04:00
parent e9bc72b4f2
commit 6a7e4c838f
2 changed files with 14 additions and 0 deletions

View File

@ -295,6 +295,9 @@ void MainWindow::DoCheckFiles(const QStringList &files)
mUI.mResults->SetCheckDirectory(checkPath); mUI.mResults->SetCheckDirectory(checkPath);
Settings checkSettings = GetCppcheckSettings(); Settings checkSettings = GetCppcheckSettings();
qDebug() << "Checking project file" << mProject->GetProjectFile()->GetFilename();
mThread->Check(checkSettings, false); mThread->Check(checkSettings, false);
} }
@ -483,6 +486,8 @@ void MainWindow::ReCheck()
Q_ASSERT(filesCount > 0); // If no files should not be able to recheck Q_ASSERT(filesCount > 0); // If no files should not be able to recheck
mUI.mResults->CheckingStarted(filesCount); mUI.mResults->CheckingStarted(filesCount);
qDebug() << "Rechecking project file" << mProject->GetProjectFile()->GetFilename();
mThread->Check(GetCppcheckSettings(), true); mThread->Check(GetCppcheckSettings(), true);
} }

View File

@ -80,6 +80,15 @@ public:
*/ */
QStringList GetIgnoredPaths() const; QStringList GetIgnoredPaths() const;
/**
* @brief Get filename for the project file.
* @return file name.
*/
QString GetFilename()
{
return mFilename;
}
/** /**
* @brief Set project root path. * @brief Set project root path.
* @param rootpath new project root path. * @param rootpath new project root path.