diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-04-09 16:32:57 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-04-09 16:32:57 (GMT) |
commit | 405f78f8e1ef68ebce2abd790820438c9e420755 (patch) | |
tree | cd8477a9acbdff6e07b9fdcc46e1e26c1c0305ab /src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h | |
parent | f1152c539845b4a52f22c8f2c978c684b442f4be (diff) | |
download | Qt-405f78f8e1ef68ebce2abd790820438c9e420755.zip Qt-405f78f8e1ef68ebce2abd790820438c9e420755.tar.gz Qt-405f78f8e1ef68ebce2abd790820438c9e420755.tar.bz2 |
Inline hasAlphaChannel and add pixelFormat getter
Reviewed-by: TrustMe
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h index 7aa6df8..6cfafcd 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h @@ -64,7 +64,7 @@ public: void fromImage(const QImage &image, Qt::ImageConversionFlags flags); void copy(const QPixmapData *data, const QRect &rect); void fill(const QColor &color); - bool hasAlphaChannel() const; + inline bool hasAlphaChannel() const { return alpha; } QPixmap transformed(const QTransform &matrix, Qt::TransformationMode mode) const; QImage toImage() const; @@ -73,7 +73,7 @@ public: // Pure virtual in QPixmapData, so re-implement here and delegate to QDirectFBPaintDevice int metric(QPaintDevice::PaintDeviceMetric m) const {return QDirectFBPaintDevice::metric(m);} - + inline QImage::Format pixelFormat() const { return format; } private: void invalidate(); QDirectFBPaintEngine *engine; |