diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2022-08-25 09:05:53 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2022-10-06 08:54:09 +0000 |
commit | f8f94a0ce1f364b19c78291f75ef060ae4f89997 (patch) | |
tree | 0115ef3eb3b2f50fa358f3067b348c6032450d8b /src/plugins/qmljstools/qmljstoolssettings.cpp | |
parent | faa38e5eb80f01c5df65dc678ab018e784f54df1 (diff) | |
download | qt-creator-f8f94a0ce1f364b19c78291f75ef060ae4f89997.tar.gz |
QmlJSTools: Convert to using Tr::tr
Change-Id: I40595e560fb2499226bd2c914a0b78ed68f830ab
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qmljstools/qmljstoolssettings.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljstoolssettings.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 <texteditor/texteditorsettings.h> #include <texteditor/tabsettings.h> @@ -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); |