From 22ab57932254d327f71b4f0c6fa4dff1f7028665 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Fri, 17 Oct 2014 14:41:09 +0200 Subject: Call tr() so that lupdate recognizes it. The old code resulted in complaint from lupdate: "weather-app/src/main.cpp:111: tr() cannot be called without context" Change-Id: I4395d544f43fe1f0a8c55393f378b4d62bdeb73b Reviewed-by: Caroline Chao --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index cecd218..5dea5c7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -108,7 +108,7 @@ int main(int argc, char *argv[]) // WinRT requires that we install a privacy policy link to the Charms bar when the network is // used, so create a Charms menu item and connect a slot to handle it WinRTSettingsCharm settingsCharm; - settingsCharm.addItem(app.tr("Privacy Policy")); + settingsCharm.addItem(QGuiApplication::tr("Privacy Policy")); QObject::connect(&settingsCharm, &WinRTSettingsCharm::itemClicked, [](const QString &) { QDesktopServices::openUrl(QUrl("http://qt.digia.com/Digia-Legal-Notice--Privacy-Policy/")); }); -- cgit v1.2.3