diff -r abc41079b313 -r 59b3b4473dc8 javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/graphics/qt/pixmap.cpp --- a/javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/graphics/qt/pixmap.cpp Fri Jul 23 12:27:20 2010 +0300 +++ b/javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/graphics/qt/pixmap.cpp Thu Aug 05 16:07:57 2010 +0300 @@ -60,6 +60,19 @@ } } +void Pixmap::createFromQPixmap(const QPixmap& aPixmap) +{ + GFX_LOG_FUNC_CALL(); + Q_ASSERT(mPixmap.isNull()); + + mPixmap = QPixmap(aPixmap); + + // Validate allocation + if(mPixmap.isNull()) + { + throw GfxException(EGfxErrorNoMemory, "Image (Pixmap) creation failed"); + } +} void Pixmap::createFromImage(Image* aImage, int aX, int aY, int aWidth, int aHeight) {