We used to mark Q_DECLARE_SHARED all our value classes in Qt 4 times, but since many Qt types these days live in nested namespaces that macro, which only works in the QT_NAMESPACE, has become less useful. As we use it in more and more places and eventually add more responsibilities to it, we don't want every module to define its version by hand, like QT3D_DECLARE_SHARED did in 2016 already. So add two namespace-aware versions of Q_DECLARE_SHARED, to be used inside or outside nested namespaces. Extend the test. Despite the name, this is not a public macro. Found missing Q_D_S in API-review, so picking this to 6.8 to aid with fixing the 6.8 API. Change-Id: I367ca0d5b005b64090de44f7b7541d8639f9a4e0 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit 37b2b2ea4ef3cf494d23885de186a9519763e744) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%