diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index e5f234ad6..7c3716644 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1459,6 +1459,9 @@ void MainWindow::setLanguage(const QString &code) //Translate everything that is visible here mUI.retranslateUi(this); mUI.mResults->translate(); + mLineEditFilter->setPlaceholderText(QCoreApplication::translate("MainWindow", "Quick Filter:")); + if (mProjectFile) + formatAndSetTitle(tr("Project:") + ' ' + mProjectFile->getFilename()); } } diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index 2fc7b621c..e724c14f4 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2020 Cppcheck team. + * Copyright (C) 2007-2021 Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -364,6 +364,7 @@ void ResultsView::saveSettings(QSettings *settings) void ResultsView::translate() { + mUI.retranslateUi(this); mUI.mTree->translate(); }