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:
@@ -1,10 +1,10 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "qmlprofilersettings.h"
|
||||
|
||||
#include "qmlprofilerconstants.h"
|
||||
#include "qmlprofilerplugin.h"
|
||||
#include "qmlprofilersettings.h"
|
||||
#include "qmlprofilertr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
@@ -40,8 +40,8 @@ QmlProfilerSettings::QmlProfilerSettings()
|
||||
registerAspect(&flushEnabled);
|
||||
flushEnabled.setSettingsKey("Analyzer.QmlProfiler.FlushEnabled");
|
||||
flushEnabled.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel);
|
||||
flushEnabled.setLabelText(tr("Flush data while profiling:"));
|
||||
flushEnabled.setToolTip(tr(
|
||||
flushEnabled.setLabelText(Tr::tr("Flush data while profiling:"));
|
||||
flushEnabled.setToolTip(Tr::tr(
|
||||
"Periodically flush pending data to the profiler. This reduces the delay when loading the\n"
|
||||
"data and the memory usage in the application. It distorts the profile as the flushing\n"
|
||||
"itself takes time."));
|
||||
@@ -50,7 +50,7 @@ QmlProfilerSettings::QmlProfilerSettings()
|
||||
flushInterval.setSettingsKey("Analyzer.QmlProfiler.FlushInterval");
|
||||
flushInterval.setRange(1, 10000000);
|
||||
flushInterval.setDefaultValue(1000);
|
||||
flushInterval.setLabelText(tr("Flush interval (ms):"));
|
||||
flushInterval.setLabelText(Tr::tr("Flush interval (ms):"));
|
||||
flushInterval.setEnabler(&flushEnabled);
|
||||
|
||||
registerAspect(&lastTraceFile);
|
||||
@@ -59,8 +59,8 @@ QmlProfilerSettings::QmlProfilerSettings()
|
||||
registerAspect(&aggregateTraces);
|
||||
aggregateTraces.setSettingsKey("Analyzer.QmlProfiler.AggregateTraces");
|
||||
aggregateTraces.setLabelPlacement(BoolAspect::LabelPlacement::InExtraLabel);
|
||||
aggregateTraces.setLabelText(tr("Process data only when process ends:"));
|
||||
aggregateTraces.setToolTip(tr(
|
||||
aggregateTraces.setLabelText(Tr::tr("Process data only when process ends:"));
|
||||
aggregateTraces.setToolTip(Tr::tr(
|
||||
"Only process data when the process being profiled ends, not when the current recording\n"
|
||||
"session ends. This way multiple recording sessions can be aggregated in a single trace,\n"
|
||||
"for example if multiple QML engines start and stop sequentially during a single run of\n"
|
||||
@@ -80,9 +80,9 @@ void QmlProfilerSettings::writeGlobalSettings() const
|
||||
QmlProfilerOptionsPage::QmlProfilerOptionsPage()
|
||||
{
|
||||
setId(Constants::SETTINGS);
|
||||
setDisplayName(QmlProfilerSettings::tr("QML Profiler"));
|
||||
setDisplayName(Tr::tr("QML Profiler"));
|
||||
setCategory("T.Analyzer");
|
||||
setDisplayCategory(QmlProfilerSettings::tr("Analyzer"));
|
||||
setDisplayCategory(Tr::tr("Analyzer"));
|
||||
setCategoryIconPath(Analyzer::Icons::SETTINGSCATEGORY_ANALYZER);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user