diff options
author | Anders Bakken <anders@trolltech.com> | 2009-03-23 21:58:31 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-03-25 15:57:18 (GMT) |
commit | 8a56f39c1ee4e04975eeac4e11368cece91e38b5 (patch) | |
tree | 686bc1f7fe6aee279b8ddf6f5fbe50f96a54de2c /src | |
parent | 4c1bc57ac5e03a5189716a2ad32d94bb5f71a360 (diff) | |
download | Qt-8a56f39c1ee4e04975eeac4e11368cece91e38b5.zip Qt-8a56f39c1ee4e04975eeac4e11368cece91e38b5.tar.gz Qt-8a56f39c1ee4e04975eeac4e11368cece91e38b5.tar.bz2 |
Make QDirectFBPaintDevice() protected.
This class should never be instantiated without being subclassed so a
protected constructor is the clean thing to do.
Reviewed-by: Tom Cooksey
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.h b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.h index e19f183..23fa5d6 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.h +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.h @@ -54,11 +54,6 @@ QT_MODULE(Gui) class QDirectFBPaintDevice : public QCustomRasterPaintDevice { public: - QDirectFBPaintDevice(QDirectFBScreen *scr = QDirectFBScreen::instance()) - : QCustomRasterPaintDevice(0), - dfbSurface(0), - lockedImage(0), - screen(scr) {} ~QDirectFBPaintDevice(); IDirectFBSurface *directFbSurface() const; @@ -74,6 +69,13 @@ public: int metric(QPaintDevice::PaintDeviceMetric metric) const; protected: + // Shouldn't create QDirectFBPaintDevice by itself but only sub-class it: + QDirectFBPaintDevice(QDirectFBScreen *scr = QDirectFBScreen::instance()) + : QCustomRasterPaintDevice(0), + dfbSurface(0), + lockedImage(0), + screen(scr) {} + IDirectFBSurface *dfbSurface; QImage *lockedImage; QDirectFBScreen *screen; |