summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap.h
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-09-18 12:11:05 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-09-18 12:16:30 (GMT)
commitad32d9a2d2c3b1202867f8563a69afb93effecd0 (patch)
tree371f84075a5c21e664a461ccc3f7db2fc7b320a9 /src/gui/image/qpixmap.h
parentdf062a2df4e9a438b6e876801cbd04a7cab7a569 (diff)
downloadQt-ad32d9a2d2c3b1202867f8563a69afb93effecd0.zip
Qt-ad32d9a2d2c3b1202867f8563a69afb93effecd0.tar.gz
Qt-ad32d9a2d2c3b1202867f8563a69afb93effecd0.tar.bz2
Adding support for symbian graphics resources.
This enables us to convert from and to new Symbian type of graphics resource, namely SgImage. This only supported with the OpenVG graphics system. On other graphics systems this will return null QPixmap. Conflicts: src/corelib/global/qglobal.h src/gui/image/qpixmap.h src/gui/image/qpixmap_s60.cpp Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/image/qpixmap.h')
-rw-r--r--src/gui/image/qpixmap.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/image/qpixmap.h b/src/gui/image/qpixmap.h
index 4a8a876..54e89ff 100644
--- a/src/gui/image/qpixmap.h
+++ b/src/gui/image/qpixmap.h
@@ -54,6 +54,7 @@ QT_BEGIN_HEADER
#if defined(Q_OS_SYMBIAN)
class CFbsBitmap;
+class RSgImage;
#endif
QT_BEGIN_NAMESPACE
@@ -158,9 +159,11 @@ public:
#if defined(Q_OS_SYMBIAN)
enum ConversionMode { CopyData, DuplicateHandle };
-
+
CFbsBitmap *toSymbianCFbsBitmap(ConversionMode mode = DuplicateHandle) const;
static QPixmap fromSymbianCFbsBitmap(CFbsBitmap *bitmap, ConversionMode mode = DuplicateHandle);
+ RSgImage* toSymbianRSgImage() const;
+ static QPixmap fromSymbianRSgImage(RSgImage *sgImage);
#endif
inline QPixmap copy(int x, int y, int width, int height) const;