forked from qt-creator/qt-creator
Move translation noop to constants.
Change-Id: I8b084374f67d2419abbc1a43b377321fd3041cf5 Reviewed-on: http://codereview.qt.nokia.com/538 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user