diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-08-17 11:15:08 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-08-17 11:43:52 (GMT) |
commit | 025a7395153c3708e2964cfd93957532b19ae04f (patch) | |
tree | 89a5131d565515db62749cd8eda18225d3162418 /src/gui/painting/qpaintdevice_win.cpp | |
parent | abdf1befb8de4b88da43561dae2e1beb09c2a532 (diff) | |
download | Qt-025a7395153c3708e2964cfd93957532b19ae04f.zip Qt-025a7395153c3708e2964cfd93957532b19ae04f.tar.gz Qt-025a7395153c3708e2964cfd93957532b19ae04f.tar.bz2 |
QPaintDevice implemented in qpaintdevice.cpp. Saves duplicated code
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/painting/qpaintdevice_win.cpp')
-rw-r--r-- | src/gui/painting/qpaintdevice_win.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gui/painting/qpaintdevice_win.cpp b/src/gui/painting/qpaintdevice_win.cpp index 86de028..f964feb 100644 --- a/src/gui/painting/qpaintdevice_win.cpp +++ b/src/gui/painting/qpaintdevice_win.cpp @@ -50,27 +50,6 @@ QT_BEGIN_NAMESPACE -QPaintDevice::QPaintDevice() -{ - painters = 0; -} - -extern void qt_painter_removePaintDevice(QPaintDevice *); //qpainter.cpp - -QPaintDevice::~QPaintDevice() -{ - if (paintingActive()) - qWarning("QPaintDevice: Cannot destroy paint device that is being " - "painted. Be sure to QPainter::end() painters!"); - qt_painter_removePaintDevice(this); -} - -int QPaintDevice::metric(PaintDeviceMetric) const -{ - qWarning("QPaintDevice::metrics: Device has no metric information"); - return 0; -} - HDC QPaintDevice::getDC() const { return 0; |