Commit 974d825b authored by con's avatar con Committed by Eike Ziller

Move translation noop to constants.

Change-Id: I8b084374f67d2419abbc1a43b377321fd3041cf5
Reviewed-on: http://codereview.qt.nokia.com/538Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 46f2166a
......@@ -254,6 +254,8 @@ const char * const ALL_FILES_FILTER = QT_TRANSLATE_NOOP("Core", "All Files
const char * const VARIABLE_SUPPORT_PROPERTY = "QtCreator.VariableSupport";
const char * const TR_CLEAR_MENU = QT_TRANSLATE_NOOP("Core", "Clear Menu");
const int TARGET_ICON_SIZE = 32;
} // namespace Constants
......
......@@ -1321,7 +1321,8 @@ void MainWindow::aboutToShowRecentFiles()
// add the Clear Menu item
if (hasRecentFiles) {
aci->menu()->addSeparator();
QAction *action = aci->menu()->addAction(tr(QT_TRANSLATE_NOOP("Core::MainWindow", "Clear Menu")));
QAction *action = aci->menu()->addAction(QCoreApplication::translate(
"Core", Core::Constants::TR_CLEAR_MENU));
connect(action, SIGNAL(triggered()), m_fileManager, SLOT(clearRecentFiles()));
}
}
......
......@@ -2232,7 +2232,8 @@ void ProjectExplorerPlugin::updateRecentProjectMenu()
// add the Clear Menu item
if (hasRecentProjects) {
menu->addSeparator();
QAction *action = menu->addAction(tr(QT_TRANSLATE_NOOP("Core::MainWindow", "Clear Menu")));
QAction *action = menu->addAction(QCoreApplication::translate(
"Core", Core::Constants::TR_CLEAR_MENU));
connect(action, SIGNAL(triggered()), this, SLOT(clearRecentProjects()));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment