summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2025-01-01 17:03:54 +0200
committerAhmad Samir <a.samirh78@gmail.com>2025-01-15 13:28:16 +0200
commit185cba6e95a006d2548f20599f84390e5a3ad653 (patch)
tree6dc7754b561b0744cb7b72acde50e979da978b99 /src/corelib/io/qdebug.h
parenta10acaca0887541207ad5607680d7864d317cf4b (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/corelib/io/qdebug.h')
-rw-r--r--src/corelib/io/qdebug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h
index 9cfd461870b..4af152440c7 100644
--- a/src/corelib/io/qdebug.h
+++ b/src/corelib/io/qdebug.h
@@ -11,6 +11,7 @@
#include <QtCore/qcompare.h>
#include <QtCore/qcontainerfwd.h>
+#include <QtCore/qfloat16.h>
#include <QtCore/qtextstream.h>
#include <QtCore/qttypetraits.h>
#include <QtCore/qtypes.h>