MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / setLanguage

Method setLanguage

gui/mainwindow.cpp:1748–1764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1746}
1747
1748void MainWindow::setLanguage(const QString &code)
1749{
1750 const QString currentLang = mTranslation->getCurrentLanguage();
1751 if (currentLang == code)
1752 return;
1753
1754 if (mTranslation->setLanguage(code)) {
1755 //Translate everything that is visible here
1756 mUI->retranslateUi(this);
1757 mUI->mResults->translate();
1758 mLineEditFilter->setPlaceholderText(QCoreApplication::translate("MainWindow", "Quick Filter:"));
1759 if (mProjectFile)
1760 formatAndSetTitle(tr("Project:") + ' ' + mProjectFile->getFilename());
1761 if (mScratchPad)
1762 mScratchPad->translate();
1763 }
1764}
1765
1766void MainWindow::aboutToShowViewMenu()
1767{

Callers 1

mainFunction · 0.45

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected