diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2009-11-25 10:54:54 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2009-11-25 10:56:00 +0100 |
commit | cd33927ac31c37ed3feb6a5a3be28d3d152bda19 (patch) | |
tree | 6177060e187f0dc09a37e50823be9e46ede1d7cf /src/gui/image/qpixmap_blitter_p.h | |
parent | 79b6ad01115cc9208e8a22d8dc925215da9792ed (diff) |
Fix QBlittablePixmapData::fromImage
There is still a stride problem when running the browser demo
Diffstat (limited to 'src/gui/image/qpixmap_blitter_p.h')
-rw-r--r-- | src/gui/image/qpixmap_blitter_p.h | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/src/gui/image/qpixmap_blitter_p.h b/src/gui/image/qpixmap_blitter_p.h index 5e01a12557..ca834dc976 100644 --- a/src/gui/image/qpixmap_blitter_p.h +++ b/src/gui/image/qpixmap_blitter_p.h @@ -4,37 +4,6 @@ #include <private/qpixmapdata_p.h> #include <private/qpaintengine_blitter_p.h> -class QImageBlitter : public QBlittable -{ -public: - QImageBlitter(const QImage &img) - : QBlittable(img.rect(),0), image(img) - { - } - - void fillRect(const QRectF &, const QColor &) - { - //should never be called - } - void drawPixmap(const QRectF &, const QPixmap &, const QRectF &) - { - //should never be called - } - -protected: - QImage *doLock() - { - return ℑ - } - - void doUnlock() - { - } - -private: - QImage image; -}; - class Q_GUI_EXPORT QBlittablePixmapData : public QPixmapData { // Q_DECLARE_PRIVATE(QBlittablePixmapData); @@ -42,7 +11,7 @@ public: QBlittablePixmapData(QPixmapData::PixelType type); ~QBlittablePixmapData(); - QBlittable *blittable(); + QBlittable *blittable() const; void setBlittable(QBlittable *blittable); void resize(int width, int height); |