path: root/src/widgets
diff options
authorMarc Mutz <>2019-08-15 12:13:49 +0200
committerMarc Mutz <>2019-08-16 23:20:47 +0200
commit7ac6cefd8affc1f3bf963035c4ce4184a6023c5a (patch)
treecf2dff84e5d3ba694431f21bc0703308377cc498 /src/widgets
parent70c624d93ee040e8aa4ab576be008f07bbfb8a2e (diff)
QWidget: unbreak QT_NO_OPENGL builds
Amends 94d7603d5114eacaf648e0b0d2dcae5e161e0217. The port from QVector<QPlatformTextureList*> to a container of unique_ptr<QPlatformTextureList> uncovered that QPlatformTextureList isn't defined for QT_NO_OPENGL builds. Some unguarded forward-declarations made the old declaration compile by accident. The new code caught this, so add the #ifdef that had been missing all along. Change-Id: If3b14fc24007b1c917a41ab83343c2e5e65fc643 Reviewed-by: Martin Storsjö <> Reviewed-by: Mårten Nordheim <> Reviewed-by: Tasuku Suzuki <>
Diffstat (limited to 'src/widgets')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/kernel/qwidget_p.h b/src/widgets/kernel/qwidget_p.h
index c851072c11..970f5c0378 100644
--- a/src/widgets/kernel/qwidget_p.h
+++ b/src/widgets/kernel/qwidget_p.h
@@ -189,7 +189,9 @@ struct QTLWExtra {
// ### TODO replace initialScreenIndex with QScreen *, in case the screens change at runtime
int initialScreenIndex; // Screen number when passing a QDesktop[Screen]Widget as parent.
+#ifndef QT_NO_OPENGL
std::vector<std::unique_ptr<QPlatformTextureList>> widgetTextures;
// *************************** Cross-platform bit fields ****************************
uint opacity : 8;