From 6a7e4c838f5cf90a8e6c85569e7a543fcb81e11c Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Sat, 4 Jun 2011 08:38:51 -0400 Subject: [PATCH] Output GUI project name when checking starts or restarts --- gui/mainwindow.cpp | 5 +++++ gui/projectfile.h | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index f43f5f2a5..98fa58ce6 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -295,6 +295,9 @@ void MainWindow::DoCheckFiles(const QStringList &files) mUI.mResults->SetCheckDirectory(checkPath); Settings checkSettings = GetCppcheckSettings(); + + qDebug() << "Checking project file" << mProject->GetProjectFile()->GetFilename(); + mThread->Check(checkSettings, false); } @@ -483,6 +486,8 @@ void MainWindow::ReCheck() Q_ASSERT(filesCount > 0); // If no files should not be able to recheck mUI.mResults->CheckingStarted(filesCount); + qDebug() << "Rechecking project file" << mProject->GetProjectFile()->GetFilename(); + mThread->Check(GetCppcheckSettings(), true); } diff --git a/gui/projectfile.h b/gui/projectfile.h index 2986f11a7..fea732587 100644 --- a/gui/projectfile.h +++ b/gui/projectfile.h @@ -80,6 +80,15 @@ public: */ QStringList GetIgnoredPaths() const; + /** + * @brief Get filename for the project file. + * @return file name. + */ + QString GetFilename() + { + return mFilename; + } + /** * @brief Set project root path. * @param rootpath new project root path.