forked from qt-creator/qt-creator
QmlProfiler: Convert to using Tr::tr
Change-Id: I9f4f8c0e499eeb1e686d1094f3442c415b845c21 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
|
||||
#include "qmlprofileractions.h"
|
||||
#include "qmlprofilerconstants.h"
|
||||
#include "qmlprofilertool.h"
|
||||
#include "qmlprofilerstatemanager.h"
|
||||
#include "qmlprofilermodelmanager.h"
|
||||
#include "qmlprofilerstatemanager.h"
|
||||
#include "qmlprofilertool.h"
|
||||
#include "qmlprofilertr.h"
|
||||
|
||||
#include <debugger/analyzer/analyzerconstants.h>
|
||||
|
||||
@@ -25,10 +26,10 @@ QmlProfilerActions::QmlProfilerActions(QObject *parent) : QObject(parent)
|
||||
|
||||
void QmlProfilerActions::attachToTool(QmlProfilerTool *tool)
|
||||
{
|
||||
const QString description = tr("The QML Profiler can be used to find performance "
|
||||
"bottlenecks in applications using QML.");
|
||||
const QString description = Tr::tr("The QML Profiler can be used to find performance "
|
||||
"bottlenecks in applications using QML.");
|
||||
|
||||
m_runAction = std::make_unique<QAction>(tr("QML Profiler"));
|
||||
m_runAction = std::make_unique<QAction>(Tr::tr("QML Profiler"));
|
||||
m_runAction->setToolTip(description);
|
||||
QObject::connect(m_runAction.get(), &QAction::triggered,
|
||||
tool, &QmlProfilerTool::profileStartupProject);
|
||||
@@ -38,16 +39,16 @@ void QmlProfilerActions::attachToTool(QmlProfilerTool *tool)
|
||||
m_runAction->setEnabled(toolStartAction->isEnabled());
|
||||
});
|
||||
|
||||
m_attachAction = std::make_unique<QAction>(tr("QML Profiler (Attach to Waiting Application)"));
|
||||
m_attachAction = std::make_unique<QAction>(Tr::tr("QML Profiler (Attach to Waiting Application)"));
|
||||
m_attachAction->setToolTip(description);
|
||||
QObject::connect(m_attachAction.get(), &QAction::triggered,
|
||||
tool, &QmlProfilerTool::attachToWaitingApplication);
|
||||
|
||||
m_loadQmlTrace = std::make_unique<QAction>(tr("Load QML Trace"));
|
||||
m_loadQmlTrace = std::make_unique<QAction>(Tr::tr("Load QML Trace"));
|
||||
connect(m_loadQmlTrace.get(), &QAction::triggered,
|
||||
tool, &QmlProfilerTool::showLoadDialog, Qt::QueuedConnection);
|
||||
|
||||
m_saveQmlTrace = std::make_unique<QAction>(tr("Save QML Trace"));
|
||||
m_saveQmlTrace = std::make_unique<QAction>(Tr::tr("Save QML Trace"));
|
||||
connect(m_saveQmlTrace.get(), &QAction::triggered,
|
||||
tool, &QmlProfilerTool::showSaveDialog, Qt::QueuedConnection);
|
||||
|
||||
@@ -69,7 +70,7 @@ void QmlProfilerActions::attachToTool(QmlProfilerTool *tool)
|
||||
void QmlProfilerActions::registerActions()
|
||||
{
|
||||
m_options.reset(ActionManager::createMenu("Analyzer.Menu.QMLOptions"));
|
||||
m_options->menu()->setTitle(tr("QML Profiler Options"));
|
||||
m_options->menu()->setTitle(Tr::tr("QML Profiler Options"));
|
||||
m_options->menu()->setEnabled(true);
|
||||
ActionContainer *menu = ActionManager::actionContainer(M_DEBUG_ANALYZER);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user