diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-08-17 13:15:08 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-08-17 13:43:52 +0200 |
commit | 025a7395153c3708e2964cfd93957532b19ae04f (patch) | |
tree | 89a5131d565515db62749cd8eda18225d3162418 /src/gui/painting/qpaintdevice_x11.cpp | |
parent | abdf1befb8de4b88da43561dae2e1beb09c2a532 (diff) | |
download | qt4-tools-025a7395153c3708e2964cfd93957532b19ae04f.tar.gz |
QPaintDevice implemented in qpaintdevice.cpp. Saves duplicated code
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/painting/qpaintdevice_x11.cpp')
-rw-r--r-- | src/gui/painting/qpaintdevice_x11.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gui/painting/qpaintdevice_x11.cpp b/src/gui/painting/qpaintdevice_x11.cpp index b0ed7326b3..474f3f18dc 100644 --- a/src/gui/painting/qpaintdevice_x11.cpp +++ b/src/gui/painting/qpaintdevice_x11.cpp @@ -49,21 +49,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"); - qt_painter_removePaintDevice(this); -} - /*! \internal Returns the X11 Drawable of the paint device. 0 is returned if it @@ -96,12 +81,6 @@ const Q_GUI_EXPORT QX11Info *qt_x11Info(const QPaintDevice *pd) return 0; } -int QPaintDevice::metric(PaintDeviceMetric) const -{ - qWarning("QPaintDevice::metrics: Device has no metric information"); - return 0; -} - #ifdef QT3_SUPPORT |