@@ -25,7 +26,7 @@ using namespace Utils;
QString QtMarketplaceWelcomePage::title() const
{
- return tr("Marketplace");
+ return Tr::tr("Marketplace");
}
int QtMarketplaceWelcomePage::priority() const
@@ -45,7 +46,7 @@ public:
{
auto searchBox = new Core::SearchBox(this);
m_searcher = searchBox->m_lineEdit;
- m_searcher->setPlaceholderText(QtMarketplaceWelcomePage::tr("Search in Marketplace..."));
+ m_searcher->setPlaceholderText(Tr::tr("Search in Marketplace..."));
auto vbox = new QVBoxLayout(this);
vbox->setContentsMargins(0, 0, 0, Core::WelcomePageHelpers::ItemGap);
@@ -82,7 +83,7 @@ public:
f.setPixelSize(20);
m_errorLabel->setFont(f);
const QString txt
- = QtMarketplaceWelcomePage::tr(
+ = Tr::tr(
"Could not fetch data from Qt Marketplace.
Try with your browser "
"instead: https://marketplace.qt.io"
"
Error: %1
").arg(message);
diff --git a/src/plugins/marketplace/qtmarketplacewelcomepage.h b/src/plugins/marketplace/qtmarketplacewelcomepage.h
index ce419380e70..fb3f1a5fe16 100644
--- a/src/plugins/marketplace/qtmarketplacewelcomepage.h
+++ b/src/plugins/marketplace/qtmarketplacewelcomepage.h
@@ -12,7 +12,6 @@ namespace Internal {
class QtMarketplaceWelcomePage : public Core::IWelcomePage
{
- Q_DECLARE_TR_FUNCTIONS(Marketplace::Internal::QtMarketplaceWelcomePage)
public:
QtMarketplaceWelcomePage() = default;