rem: wmfBuffer.open( IO_ReadOnly );
add: wmfBuffer.open( QIODevice::ReadOnly );
context: QPixmap loadRenderingPixmap( KTNEFPropertySet *pSet, const QColor& bgColor ){	QPixmap pix;	QVariant rendData = pSet->attribute( attATTACHRENDDATA ), wmf = pSet->attribute( attATTACHMETAFILE );	if ( !rendData.isNull() && !wmf.isNull() )	{		// Get rendering size		QBuffer rendBuffer( rendData.asByteArray() );		rendBuffer.open( IO_ReadOnly );		QDataStream rendStream( &rendBuffer );		rendStream.setByteOrder( QDataStream::LittleEndian );		Q_UINT16 type, w, h;		rendStream >> type >> w >> w; // read type and skip 4 bytes		rendStream >> w >> h;		rendBuffer.close();		if ( type == 1 && w > 0 && h > 0 )		{			// Load WMF data			QWinMetaFile wmfLoader;			QBuffer wmfBuffer( wmf.asByteArray() );			wmfBuffer.open( IO_ReadOnly );			wmfLoader.setBbox( QRect( 0, 0, w, h ) );			if ( wmfLoader.load( wmfBuffer ) )			{				pix.resize( w, h );				pix.fill( bgColor );				wmfLoader.paint( &pix );			}			wmfBuffer.close();		}	}	return pix;}