Designer: Convert to using Tr::tr

Change-Id: I1008a1a398809eee38fd006aac997c59b787dfbd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2022-08-30 15:28:40 +02:00
parent 8fab6a7259
commit 645fce14e0
26 changed files with 110 additions and 822 deletions

View File

@@ -1,8 +1,9 @@
// 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 "settingspage.h"
#include "designertr.h"
#include "formeditorw.h"
#include "settingspage.h"
#include <coreplugin/icontext.h>
@@ -47,8 +48,7 @@ void SettingsPage::finish()
SettingsPageProvider::SettingsPageProvider()
{
setCategory(Designer::Constants::SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Designer",
Designer::Constants::SETTINGS_TR_CATEGORY));
setDisplayCategory(Tr::tr(Designer::Constants::SETTINGS_TR_CATEGORY));
setCategoryIcon(Utils::Icon({{":/core/images/settingscategory_design.png",
Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint));
}