From e8f6d1f79af24e1433e84f859aae89d0787a2cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Blissing?= Date: Sun, 6 Oct 2024 21:40:49 +0200 Subject: [PATCH] Add QT_USE_NAMESPACE macro (#6864) The macro `QT_USE_NAMESPACE` should expand to nothing for most Qt builds, i.e. built with an empty `QT_NAMESPACE` variable. However if Qt is built using a custom namespace then all forward declarations must be wrapped with `QT_BEGIN_NAMESPACE` and `QT_END_NAMESPACE`. Today CppCheck defines these macros as empty, thus `QT_USE_NAMESPACE` should be empty as well. Reference: https://wiki.qt.io/Qt_In_Namespace --- cfg/qt.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index fef035130c0..08ea9d9d7c5 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -5368,6 +5368,7 @@ +