qt5base-lts/src/opengl
Marc Mutz 4a7c76d4a5 Include what you need: <QPointer>
All these TUs relied on transitive includes of qpointer.h, maybe to a
large extent via qevent.h, though, given that qevent.h is more or less
the only public QtBase header that includes qpointer.h, something else
seems to be at play here.

Said qevent.h actually needs QPointer in-name-only, so a forward
declaration would suffice. Prepare for qevent.h dropping the include.

The algorithm I used was:

If the TU mentions 'passiveGrabbers', the name of the QEvent function
that returns QPointers, and the TU doesn't have qpointer.h included
explicitly, include it. That may produce False Positives, but better
safe than sorry. Otherwise, in src/, add an include to all source and
header files which mention QPointer. Exception: if foo.h of a foo.cpp
already includes it, don't include again.

Task-number: QTBUG-117670
Change-Id: I3321cccdb41ce0ba6d8a709cea92427aba398254
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-10-12 21:38:54 +02:00
..
doc Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
CMakeLists.txt Enable QT_NO_CONTEXTLESS_CONNECT for most of QtBase 2023-07-11 22:44:29 +02:00
qopengl2pexvertexarray_p.h Gui: mark types Q_PRIMITIVE_TYPE when they're held in QDataBuffer 2022-07-08 20:14:52 +00:00
qopengl2pexvertexarray.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglbuffer.cpp QOpenGLBuffer: add move-SMFs and swap()s 2022-07-20 13:15:55 +02:00
qopenglbuffer.h QOpenGLBuffer: add move-SMFs and swap()s 2022-07-20 13:15:55 +02:00
qopenglcompositor_p.h QOpenGLCompositorBackingStore: ensure backing store on flushed windows 2023-09-13 16:06:33 +02:00
qopenglcompositor.cpp rhi: Make it a QPA-style private but semi-public API 2023-05-21 15:42:58 +02:00
qopenglcompositorbackingstore_p.h Make rhiFlush() support custom source DPR 2022-06-14 21:16:35 +02:00
qopenglcompositorbackingstore.cpp QOpenGLCompositorBackingStore: ensure backing store on flushed windows 2023-09-13 16:06:33 +02:00
qopenglcustomshaderstage_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglcustomshaderstage.cpp Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
qopengldebug.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qopengldebug.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qopenglengineshadermanager_p.h Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qopenglengineshadermanager.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qopenglengineshadersource_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglframebufferobject_p.h Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qopenglframebufferobject.cpp gl: Check for image validity in readback 2023-04-25 18:10:44 +02:00
qopenglframebufferobject.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qopenglfunctions_1_0.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_0.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_1.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_1.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_2.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_2.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_3.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_3.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_4.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_4.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_5.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_1_5.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_2_0.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_2_0.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_2_1.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_2_1.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_0.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_0.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_1.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_1.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_2_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_2_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_2_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_2_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_3_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_3_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_3_3_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_3_3_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_0_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_0_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_0_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_0_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_1_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_1_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_1_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_1_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_2_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_2_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_2_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_2_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_3_compatibility.cpp QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_3_compatibility.h QOpenGLFunctions: fix -Wunused-private-field (Clang 15) 2023-07-05 23:13:08 +00:00
qopenglfunctions_4_3_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_3_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_compatibility.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_compatibility.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_4_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_compatibility.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_compatibility.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_core.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_4_5_core.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_es2.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglfunctions_es2.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglgradientcache_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglgradientcache.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintdevice_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintdevice.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintdevice.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpaintengine_p.h Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopenglpaintengine.cpp Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopenglpixeltransferoptions.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglpixeltransferoptions.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglqueryhelper_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglshadercache_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglshaderprogram.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qopenglshaderprogram.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexture_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexture.cpp Add QImage null check when QOpenGLTexture converts 2023-03-21 11:55:53 +01:00
qopengltexture.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltextureblitter.cpp QtOpenGL: Disambiguate class name QTextureBinder 2023-01-13 07:58:37 +01:00
qopengltextureblitter.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexturecache_p.h Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopengltexturecache.cpp Avoid incomplete textures in GL paint engine 2023-03-02 17:39:10 +00:00
qopengltextureglyphcache_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltextureglyphcache.cpp Fix broken Text rendering when noantialiased NativeRendering is used 2022-10-11 18:35:59 +02:00
qopengltexturehelper_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltexturehelper.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltextureuploader_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltextureuploader.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltimerquery.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopengltimerquery.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionfunctions_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionfunctions.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
qopenglversionfunctions.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionfunctionsfactory.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionfunctionsfactory.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionprofile.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglversionprofile.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglvertexarrayobject_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglvertexarrayobject.cpp Avoid including qopenglfunctions header files if Qt is built with GLES2 2022-06-28 10:52:23 +02:00
qopenglvertexarrayobject.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qopenglwindow.cpp Add QOpenGLWindow/Widget doc note about depth/stencil 2023-03-16 10:26:40 +01:00
qopenglwindow.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtopenglglobal.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvkconvenience_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvkconvenience.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00