diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-09-18 12:11:05 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-09-18 12:16:30 (GMT) |
commit | ad32d9a2d2c3b1202867f8563a69afb93effecd0 (patch) | |
tree | 371f84075a5c21e664a461ccc3f7db2fc7b320a9 /src/gui/image/qpixmap.h | |
parent | df062a2df4e9a438b6e876801cbd04a7cab7a569 (diff) | |
download | Qt-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.h | 5 |
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; |