Amends efe41182fda94c0e4805c24b3305577e5da81880. The code already tests for QT_NO_WIDGETS before including and using Widgets APIs, and we will want to extend the corelib_snippets target with more of the existing snippets code to make sure that they build. To not break -no-widgets builds, don't link against Qt::Widgets unless the feature is set. Pick-to: 6.10 Fixes: QTBUG-137556 Change-Id: Ic30fd519416068c275c3fffd0e1df10a76ce8fad Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%