summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAnders Bakken <anders@trolltech.com>2009-03-23 21:58:31 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-03-25 15:57:18 (GMT)
commit8a56f39c1ee4e04975eeac4e11368cece91e38b5 (patch)
tree686bc1f7fe6aee279b8ddf6f5fbe50f96a54de2c /src/plugins
parent4c1bc57ac5e03a5189716a2ad32d94bb5f71a360 (diff)
downloadQt-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/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintdevice.h12
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;