]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Integrate patch from C.Caremoli: additional fix for sip 4.8.0 and newer V5_1_3 V5_1_3_patch01 V5_1_3rc4 V5_1_3rc5
authorvsr <vsr@opencascade.com>
Mon, 30 Nov 2009 10:20:10 +0000 (10:20 +0000)
committervsr <vsr@opencascade.com>
Mon, 30 Nov 2009 10:20:10 +0000 (10:20 +0000)
src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_ModuleLight.cxx

index a985518c8c018fd65028aa314d3a5036c4c5d6d0..8c278a4bc0580aeae07ac2d204463c79d60b76cb 100644 (file)
@@ -1185,13 +1185,11 @@ void SALOME_PYQT_ModuleLight::contextMenu( const QString& theContext, QMenu* the
   if ( myXmlHandler )
     myXmlHandler->createPopup( thePopupMenu, aContext, aParent, aObject );
 
-  PyObjWrapper sipPopup( sipBuildResult( 0, "D", thePopupMenu, 
 #if SIP_VERSION < 0x040800
-                                                         sipClass_QMenu
+  PyObjWrapper sipPopup( sipBuildResult( 0, "M", thePopupMenu, sipClass_QMenu) );
 #else
-                                                         sipType_QMenu
+  PyObjWrapper sipPopup( sipBuildResult( 0, "D", thePopupMenu, sipType_QMenu, NULL) );
 #endif
-  , NULL) );
 
   // then call Python module's createPopupMenu() method (for new modules)
   if ( PyObject_HasAttrString( myModule, "createPopupMenu" ) ) {
@@ -1403,13 +1401,11 @@ void SALOME_PYQT_ModuleLight::setWorkSpace()
       if ( aDesktop )
         aWorkspace = aDesktop->workstack();
     }
-    PyObjWrapper pyws( sipBuildResult( 0, "D", aWorkspace, 
 #if SIP_VERSION < 0x040800
-                                                         sipClass_QWidget
+    PyObjWrapper pyws( sipBuildResult( 0, "M", aWorkspace, sipClass_QWidget) );
 #else
-                                                         sipType_QWidget
+    PyObjWrapper pyws( sipBuildResult( 0, "D", aWorkspace, sipType_QWidget , NULL) );
 #endif
-  , NULL) );
     // ... and finally call Python module's setWorkspace() method (obsolete)
     if ( PyObject_HasAttrString( myModule, "setWorkSpace" ) ) {
       PyObjWrapper res( PyObject_CallMethod( myModule, (char*)"setWorkSpace", (char*)"O", pyws.get() ) );
@@ -2472,13 +2468,11 @@ void SALOME_PYQT_ModuleLight::openEvent(QStringList theListOfFiles, bool &opened
     return;
   QStringList* theList = new QStringList(theListOfFiles);
 
-  PyObjWrapper sipList( sipBuildResult( 0, "D", theList,
 #if SIP_VERSION < 0x040800
-                                                         sipClass_QStringList
+  PyObjWrapper sipList( sipBuildResult( 0, "M", theList, sipClass_QStringList) );
 #else
-                                                         sipType_QStringList
+  PyObjWrapper sipList( sipBuildResult( 0, "D", theList,  sipType_QStringList , NULL) );
 #endif
-  , NULL) );
   if ( PyObject_HasAttrString(myModule , "openFiles") ) {
     PyObjWrapper res( PyObject_CallMethod( myModule, (char*)"openFiles",
                                           (char*)"O", sipList.get()));