GUI: Remove unneeded translation code.
This commit is contained in:
parent
2a49ff9c4d
commit
7d9f8e1706
|
@ -42,7 +42,6 @@ MainWindow::MainWindow() :
|
|||
mSettings(new QSettings("Cppcheck", "Cppcheck-GUI", this)),
|
||||
mApplications(new ApplicationList(this)),
|
||||
mTranslation(new TranslationHandler(this)),
|
||||
mLanguages(new QActionGroup(this)),
|
||||
mLogView(NULL),
|
||||
mHelpWindow(NULL),
|
||||
mProject(NULL),
|
||||
|
@ -675,16 +674,6 @@ void MainWindow::SetLanguage(int index)
|
|||
//Translate everything that is visible here
|
||||
mUI.retranslateUi(this);
|
||||
mUI.mResults->Translate();
|
||||
QStringList languages = mTranslation->GetNames();
|
||||
QList<QAction *> actions = mLanguages->actions();
|
||||
|
||||
if (languages.size() <= actions.size())
|
||||
{
|
||||
for (int i = 0; i < languages.size(); i++)
|
||||
{
|
||||
actions[i]->setText(tr(languages[i].toLatin1()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -384,12 +384,6 @@ protected:
|
|||
*/
|
||||
Ui::MainWindow mUI;
|
||||
|
||||
/**
|
||||
* @brief Group holding all supported languages
|
||||
*
|
||||
*/
|
||||
QActionGroup *mLanguages;
|
||||
|
||||
/**
|
||||
* @brief Current checked directory.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue