summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2014-10-17 14:41:09 +0200
committerJan Arve Sæther <jan-arve.saether@theqtcompany.com>2014-11-06 16:19:07 +0100
commit22ab57932254d327f71b4f0c6fa4dff1f7028665 (patch)
tree2c82cbc26919a2ac803aa14e224fdfbc04ede501
parentd2b9a2d70b84a487b3b340b99021a9df49eda861 (diff)
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 <caroline.chao@theqtcompany.com>
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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/"));
});