From fe6ea282d305fea0a8251dcaac23b684afd93d7b Mon Sep 17 00:00:00 2001 From: versat Date: Tue, 12 Feb 2019 10:21:56 +0100 Subject: [PATCH] qt.cfg: Add support for QT_TR_NOOP* and QT_TRANSLATE_NOOP* macros Reference: https://doc.qt.io/qt-5/i18n-source-translation.html#using-qt-tr-noop-and-qt-translate-noop-in-c --- cfg/qt.cfg | 6 ++++++ test/cfg/qt.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index c3380c1f4..583f5c5ec 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -1326,6 +1326,12 @@ + + + + + + diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 03b2b9fb0..94d1fa0a9 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -11,6 +11,7 @@ #include #include #include +#include void QString1(QString s) @@ -57,6 +58,8 @@ void validCode(int * pIntPtr) if (Q_LIKELY(pIntPtr)) {} if (Q_UNLIKELY(!pIntPtr)) {} + + printf(QT_TR_NOOP("Hi")); } void ignoredReturnValue()