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>
commit49ec8fa83d6344802f1cdf9f41f8acbdade23b11
parent4ac77775922b143222ff6b056071179260f0509e
authorSami Varanka <sami.varanka@qt.io>
committerSami Varanka <sami.varanka@qt.io>
commit timeThu, 13 Aug 2026 07:56:25 +0000