Added a reserved data pointer in QPaintDevice.
authorAlexandros Dermenakis <alexandros.dermenakis@nokia.com>
Mon, 16 Jul 2012 11:08:09 +0000 (13:08 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jul 2012 12:22:55 +0000 (14:22 +0200)
Change-Id: If547e5525635e7c76db7a02c7c0c300c87373a18
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/gui/painting/qpaintdevice.cpp
src/gui/painting/qpaintdevice.h

index afbd866..7952ee0 100644 (file)
@@ -45,6 +45,7 @@ QT_BEGIN_NAMESPACE
 
 QPaintDevice::QPaintDevice()
 {
+    reserved = 0;
     painters = 0;
 }
 
index 4053e89..6d3815c 100644 (file)
@@ -52,6 +52,7 @@ QT_BEGIN_NAMESPACE
 
 
 class QPaintEngine;
+class QPaintDevicePrivate;
 
 class Q_GUI_EXPORT QPaintDevice                                // device for QPainter
 {
@@ -98,6 +99,8 @@ protected:
 private:
     Q_DISABLE_COPY(QPaintDevice)
 
+    QPaintDevicePrivate *reserved;
+
     friend class QPainter;
     friend class QPainterPrivate;
     friend class QFontEngineMac;