From 7d9f8e1706ad18b8357d551460a1b4e0cb6ac4be Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 6 Feb 2011 20:56:04 +0200 Subject: [PATCH] GUI: Remove unneeded translation code. --- gui/mainwindow.cpp | 11 ----------- gui/mainwindow.h | 6 ------ 2 files changed, 17 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index e052db341..f0cda060c 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -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 actions = mLanguages->actions(); - - if (languages.size() <= actions.size()) - { - for (int i = 0; i < languages.size(); i++) - { - actions[i]->setText(tr(languages[i].toLatin1())); - } - } } } diff --git a/gui/mainwindow.h b/gui/mainwindow.h index e40f3ec51..1455773aa 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -384,12 +384,6 @@ protected: */ Ui::MainWindow mUI; - /** - * @brief Group holding all supported languages - * - */ - QActionGroup *mLanguages; - /** * @brief Current checked directory. */