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,6 +3,7 @@
|
||||
|
||||
#include "qmlprofilerstatisticsview.h"
|
||||
#include "qmlprofilertool.h"
|
||||
#include "qmlprofilertr.h"
|
||||
|
||||
#include <coreplugin/minisplitter.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -46,7 +47,7 @@ QmlProfilerStatisticsView::QmlProfilerStatisticsView(QmlProfilerModelManager *pr
|
||||
: QmlProfilerEventsView(parent)
|
||||
{
|
||||
setObjectName(QLatin1String("QmlProfiler.Statistics.Dock"));
|
||||
setWindowTitle(tr("Statistics"));
|
||||
setWindowTitle(Tr::tr("Statistics"));
|
||||
|
||||
auto model = new QmlProfilerStatisticsModel(profilerModelManager);
|
||||
m_mainView.reset(new QmlProfilerStatisticsMainView(model));
|
||||
@@ -122,16 +123,16 @@ void QmlProfilerStatisticsView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
if (mouseOnTable(position)) {
|
||||
menu.addSeparator();
|
||||
if (m_mainView->selectedModelIndex().isValid())
|
||||
copyRowAction = menu.addAction(tr("Copy Row"));
|
||||
copyTableAction = menu.addAction(tr("Copy Table"));
|
||||
copyRowAction = menu.addAction(Tr::tr("Copy Row"));
|
||||
copyTableAction = menu.addAction(Tr::tr("Copy Table"));
|
||||
|
||||
showExtendedStatsAction = menu.addAction(tr("Extended Event Statistics"));
|
||||
showExtendedStatsAction = menu.addAction(Tr::tr("Extended Event Statistics"));
|
||||
showExtendedStatsAction->setCheckable(true);
|
||||
showExtendedStatsAction->setChecked(m_mainView->showExtendedStatistics());
|
||||
}
|
||||
|
||||
menu.addSeparator();
|
||||
getGlobalStatsAction = menu.addAction(tr("Show Full Range"));
|
||||
getGlobalStatsAction = menu.addAction(Tr::tr("Show Full Range"));
|
||||
if (!m_mainView->isRestrictedToRange())
|
||||
getGlobalStatsAction->setEnabled(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user