OSDN Git Service

QImage stream operator is optional [ci reset]
authorIvailo Monev <xakepa10@gmail.com>
Sat, 18 Dec 2021 11:15:16 +0000 (13:15 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 18 Dec 2021 11:15:23 +0000 (13:15 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/image/qimage.h

index 5e670d2..2418107 100644 (file)
@@ -213,7 +213,9 @@ private:
     friend class QX11AlphaDetector;
     friend class QSpanData;
     friend class QPngHandler;
+#if !defined(QT_NO_DATASTREAM)
     friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QImage &);
+#endif
 };
 
 Q_DECLARE_TYPEINFO(QImage, Q_MOVABLE_TYPE);