diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2022-11-09 10:16:42 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2022-11-09 10:45:10 +0200 |
commit | d548bfafb2c30d0704d49108c4d6f8a96cda73e5 (patch) | |
tree | 5590ec841a82d3afda9b51745ca34650be3cc4fd | |
parent | 917b4dbf6a490bc08c84f70a214bc6e2c16435f5 (diff) |
fix build without opengl
Fixes build failure:
"src/charts/chartpresenter_p.h:19:10: fatal error: private/glwidget_p.h: No such file
or directory #include <private/glwidget_p.h>"
Change-Id: I4a5f39bdcea5fc1871daed1300498497e159cf02
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r-- | src/charts/chartpresenter_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/charts/chartpresenter_p.h b/src/charts/chartpresenter_p.h index 1374bc32..e06203e4 100644 --- a/src/charts/chartpresenter_p.h +++ b/src/charts/chartpresenter_p.h @@ -16,7 +16,9 @@ #include <QtCharts/QChartGlobal> #include <QtCharts/QChart> //because of QChart::ChartThemeId #include <QtCharts/private/qchartglobal_p.h> -#include <private/glwidget_p.h> +#if !defined(QT_NO_OPENGL) +# include <private/glwidget_p.h> +#endif #include <QtCore/QRectF> #include <QtCore/QMargins> #include <QtCore/QLocale> |