Salome HOME
refs #1461: draft patch for some simple acceleration
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Tool.cxx
index f86499f2b94171631fa6e7e5688ecdeb05ebc8ee..cf7f4f36325a408998104bf647fa83a929a57eff 100644 (file)
@@ -200,7 +200,7 @@ HYDROData_SequenceOfObjects HYDROGUI_Tool::GetObjectBackReferences( const Handle
 }
 
 QMap<QString,HYDROData_SequenceOfObjects> HYDROGUI_Tool::GetObjectsBackReferences(
-  const Handle_HYDROData_Document& theDocument, const QStringList& theObjectNames )
+  const Handle(HYDROData_Document)& theDocument, const QStringList& theObjectNames )
 {
   QMap<QString,HYDROData_SequenceOfObjects> aResMap;
 
@@ -268,7 +268,7 @@ QStringList HYDROGUI_Tool::FindExistingObjectsNames( const Handle(HYDROData_Docu
     
     if( isOK && isCheckValidProfile )
     {
-      Handle_HYDROData_Profile aProfile = Handle_HYDROData_Profile::DownCast( anObject );
+      Handle(HYDROData_Profile) aProfile = Handle(HYDROData_Profile)::DownCast( anObject );
       if( !aProfile.IsNull() && !aProfile->IsValid() )
         isOK = false;
     }
@@ -315,8 +315,8 @@ Handle(Image_PixMap) HYDROGUI_Tool::Pixmap( const QImage& theImage )
         Image_PixMap::ImgFormat aFormat;
         if ( anImage.hasAlphaChannel() )
         {
-            if ( anImage.format() != QImage::Format_ARGB32 )
-                anImage = anImage.convertToFormat( QImage::Format_ARGB32 );
+          if ( anImage.format() != QImage::Format_RGBA8888 )
+                anImage = anImage.convertToFormat( QImage::Format_RGBA8888 );
             aFormat = Image_PixMap::ImgRGBA;
         }
         else