From f8f94a0ce1f364b19c78291f75ef060ae4f89997 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 25 Aug 2022 09:05:53 +0200 Subject: QmlJSTools: Convert to using Tr::tr Change-Id: I40595e560fb2499226bd2c914a0b78ed68f830ab Reviewed-by: hjk --- src/plugins/qmljstools/qmljstoolssettings.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/plugins/qmljstools/qmljstoolssettings.cpp') diff --git a/src/plugins/qmljstools/qmljstoolssettings.cpp b/src/plugins/qmljstools/qmljstoolssettings.cpp index f1e6bbcc08..817529924c 100644 --- a/src/plugins/qmljstools/qmljstoolssettings.cpp +++ b/src/plugins/qmljstools/qmljstoolssettings.cpp @@ -1,10 +1,11 @@ // 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 "qmljstoolssettings.h" -#include "qmljstoolsconstants.h" #include "qmljscodestylepreferences.h" #include "qmljscodestylepreferencesfactory.h" +#include "qmljstoolsconstants.h" +#include "qmljstoolssettings.h" +#include "qmljstoolstr.h" #include #include @@ -48,7 +49,7 @@ QmlJSToolsSettings::QmlJSToolsSettings() // Qt style auto qtCodeStyle = new QmlJSCodeStylePreferences; qtCodeStyle->setId("qt"); - qtCodeStyle->setDisplayName(tr("Qt")); + qtCodeStyle->setDisplayName(Tr::tr("Qt")); qtCodeStyle->setReadOnly(true); TabSettings qtTabSettings; qtTabSettings.m_tabPolicy = TabSettings::SpacesOnlyTabPolicy; @@ -98,7 +99,7 @@ QmlJSToolsSettings::QmlJSToolsSettings() // create custom code style out of old settings ICodeStylePreferences *oldCreator = pool->createCodeStyle( - "legacy", legacyTabSettings, QVariant(), tr("Old Creator")); + "legacy", legacyTabSettings, QVariant(), Tr::tr("Old Creator")); // change the current delegate and save m_globalCodeStyle->setCurrentDelegate(oldCreator); -- cgit v1.2.1