forked from qt-creator/qt-creator
Translations: Replace QCoreApplication::translate() with Tr::tr()
Calling <Module>::Tr::tr() is preferred over
QCoreApplication::translate("::<Module>", "..."). This changes
occurrences in .cpp files.
Change-Id: I3311ef0dbf3e7d105a3f181b6b988f3b444468f1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include <coreplugin/find/itemviewfind.h>
|
||||
|
||||
#include <QAction>
|
||||
#include <QCoreApplication>
|
||||
#include <QToolButton>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
@@ -256,8 +255,7 @@ void Console::evaluate(const QString &expression)
|
||||
m_scriptEvaluator(expression);
|
||||
} else {
|
||||
auto item = new ConsoleItem(
|
||||
ConsoleItem::ErrorType,
|
||||
QCoreApplication::translate("::Debugger", "Can only evaluate during a debug session."));
|
||||
ConsoleItem::ErrorType, Tr::tr("Can only evaluate during a debug session."));
|
||||
m_consoleItemModel->shiftEditableRow();
|
||||
printItem(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user