GUI: Remove unneeded translation code.

This commit is contained in:
Kimmo Varis 2011-02-06 20:56:04 +02:00
parent 2a49ff9c4d
commit 7d9f8e1706
2 changed files with 0 additions and 17 deletions

View File

@ -42,7 +42,6 @@ MainWindow::MainWindow() :
mSettings(new QSettings("Cppcheck", "Cppcheck-GUI", this)), mSettings(new QSettings("Cppcheck", "Cppcheck-GUI", this)),
mApplications(new ApplicationList(this)), mApplications(new ApplicationList(this)),
mTranslation(new TranslationHandler(this)), mTranslation(new TranslationHandler(this)),
mLanguages(new QActionGroup(this)),
mLogView(NULL), mLogView(NULL),
mHelpWindow(NULL), mHelpWindow(NULL),
mProject(NULL), mProject(NULL),
@ -675,16 +674,6 @@ void MainWindow::SetLanguage(int index)
//Translate everything that is visible here //Translate everything that is visible here
mUI.retranslateUi(this); mUI.retranslateUi(this);
mUI.mResults->Translate(); 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()));
}
}
} }
} }

View File

@ -384,12 +384,6 @@ protected:
*/ */
Ui::MainWindow mUI; Ui::MainWindow mUI;
/**
* @brief Group holding all supported languages
*
*/
QActionGroup *mLanguages;
/** /**
* @brief Current checked directory. * @brief Current checked directory.
*/ */