summaryrefslogtreecommitdiff
path: root/src/gui/painting/qpaintdevice_x11.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-08-17 13:15:08 +0200
committerGunnar Sletta <gunnar@trolltech.com>2009-08-17 13:43:52 +0200
commit025a7395153c3708e2964cfd93957532b19ae04f (patch)
tree89a5131d565515db62749cd8eda18225d3162418 /src/gui/painting/qpaintdevice_x11.cpp
parentabdf1befb8de4b88da43561dae2e1beb09c2a532 (diff)
downloadqt4-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.cpp21
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