From f741a12de11c9b06d971795cf34b26afc08e3f59 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 7 Aug 2020 11:46:07 +0200 Subject: Disentangle QIODevice dependencies Move the QIODevice::OpenMode enum into a base class, so that we can remove the full QIODevice (and thus QObject) dependency from qdatastream.h and qtextstream.h. This is required so that we can include QDataStream in qmetatype.h without getting circular dependencies. As a nice side effect, QDataStream and QTextStream can now inherit QIODeviceBase and provide the OpenMode enum directly in their class scope. Change-Id: Ifa68b7b1d8d95687ed032f6c9206f92e63bfacdf Reviewed-by: Paul Wicking Reviewed-by: Maurice Kalinowski --- src/xml/dom/qdom_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/xml/dom/qdom_p.h') diff --git a/src/xml/dom/qdom_p.h b/src/xml/dom/qdom_p.h index a9399d9901..8ab81aa083 100644 --- a/src/xml/dom/qdom_p.h +++ b/src/xml/dom/qdom_p.h @@ -46,6 +46,7 @@ #include #include #include +#include QT_BEGIN_NAMESPACE -- cgit v1.2.3