Use QT_CONFIG to check whether feature is enabled
Whether a certain feature is enabled should be checked with
QT_CONFIG(<feature_name>). QtGraphs used to check in CMakeLists.txt
if a feature is enabled and define a macro for it. In the source, the
enablement was checked by checking the macro. However, that is a
rather ugly way.
This commit changes them to use QT_CONFIG(<feature_name>),
which is more elegant.
Pick-to: 6.12
Task-number: QTBUG-146286
Change-Id: I647e586aa344dc6fb7ed4eab2d13838a66c5719e
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
| commit | 49ec8fa83d6344802f1cdf9f41f8acbdade23b11 |
| parent | 4ac77775922b143222ff6b056071179260f0509e |
| author | Sami Varanka <sami.varanka@qt.io> |
| committer | Sami Varanka <sami.varanka@qt.io> |
| commit time | Thu, 13 Aug 2026 07:56:25 +0000 |
- M src/common/global/qgraphsglobal_p.h
- M src/graphs2d/CMakeLists.txt
- M src/graphs2d/animation/qgraphpointanimation.cpp
- M src/graphs2d/animation/qgraphtransition.cpp
- M src/graphs2d/piechart/qpieslice.cpp
- M src/graphs2d/qabstractseries.cpp
- M src/graphs2d/qgraphsview.cpp
- M src/graphs2d/qgraphsview_p.h
- M src/graphs2d/qsgrenderer/arearenderer.cpp
- M src/graphs2d/qsgrenderer/arearenderer_p.h
- M src/graphs2d/qsgrenderer/axisrenderer.cpp
- M src/graphs2d/qsgrenderer/axisrenderer_p.h
- M src/graphs2d/qsgrenderer/barsrenderer.cpp
- M src/graphs2d/qsgrenderer/barsrenderer_p.h
- M src/graphs2d/qsgrenderer/customrenderer.cpp
- M src/graphs2d/qsgrenderer/customrenderer_p.h
- M src/graphs2d/qsgrenderer/pierenderer.cpp
- M src/graphs2d/qsgrenderer/pierenderer_p.h
- M src/graphs2d/qsgrenderer/pointrenderer.cpp
- M src/graphs2d/qsgrenderer/pointrenderer_p.h
- M src/graphs2d/qsgrenderer/qcpainteritem.cpp
- M src/graphs2d/qsgrenderer/qcpainteritem_p.h
- M tests/auto/cpp2dtest/CMakeLists.txt
- M tests/auto/cpp2dtest/qgarea/tst_area.cpp