diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2025-01-01 17:03:54 +0200 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2025-01-15 13:28:16 +0200 |
| commit | 185cba6e95a006d2548f20599f84390e5a3ad653 (patch) | |
| tree | 6dc7754b561b0744cb7b72acde50e979da978b99 /src/opengl/qopengldebug.h | |
| parent | a10acaca0887541207ad5607680d7864d317cf4b (diff) | |
Replace qdebug.h includes in public headers with forward-declarations
qdebug.h includes many Qt and STL headers, so if you include a Qt header
you get all those transitive includes, which may affect build time.
- Where appropriate use the printf-like syntax of qDebug() and co.,
these don't need the QDebug streaming operators
- qfloat16 is used in an inline member function, so include it
explicitly
[ChangeLog][Potentially Source Incompatible Changes] Various Qt public
headers don't include QDebug any more; if you need QDebug's streaming
you'll have to include it in your code.
Task-number: QTBUG-132439
Pick-to: 6.9
Change-Id: I750587e17a3b38fa226cd3af8eaccc8da580f436
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/opengl/qopengldebug.h')
| -rw-r--r-- | src/opengl/qopengldebug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qopengldebug.h b/src/opengl/qopengldebug.h index 843ab7212ae..f9a40313ad8 100644 --- a/src/opengl/qopengldebug.h +++ b/src/opengl/qopengldebug.h @@ -12,7 +12,6 @@ #include <QtCore/qflags.h> #include <QtCore/qlist.h> #include <QtCore/qmetatype.h> -#include <QtCore/qdebug.h> #include <QtGui/qopenglcontext.h> #if defined(Q_QDOC) @@ -22,6 +21,7 @@ typedef unsigned int GLuint; QT_BEGIN_NAMESPACE +class QDebug; class QOpenGLDebugLogger; class QOpenGLDebugLoggerPrivate; class QOpenGLDebugMessagePrivate; |
