summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charts/qchartglobal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/charts/qchartglobal.h b/src/charts/qchartglobal.h
index b18cd678..2516b3c0 100644
--- a/src/charts/qchartglobal.h
+++ b/src/charts/qchartglobal.h
@@ -24,4 +24,11 @@
*/
#define QT_CHARTS_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
+#ifdef QTGRAPHS_HEADERS
+#error Mixing QtCharts and QtGraphs in the same TU is unsupported since they use\
+ the same class names.
+#endif
+
+#define QTCHARTS_HEADERS
+
#endif // QCHARTGLOBAL_H