Fail compilation when QtGraphs in the same TU
Because QtGraphs has inherited many of its classes
from QtCharts, the modules have many classes with the same
name. Therefore, mixing QtCharts and QtGraphs headers in
the same TU violates ODR. This patch includes the check for that and
fails compilation with an error message.
Pick-to: 6.8 6.9
Fixes: QTBUG-135691
Change-Id: Ic612ec36b1369ceee0eef83220c41e75f38a611e
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| commit | 5a7ad3e526b7f585cf52b978f4a3e19268a418bd |
| parent | 9afa6433ae06c4665558e3597819a021b3d622b4 |
| author | Sami Varanka <sami.varanka@qt.io> |
| committer | Sami Varanka <sami.varanka@qt.io> |
| commit time | Fri, 23 May 2025 10:31:31 +0000 |