Salome HOME
Porting: ParaView 5.9, sip 5
authorDUC ANH HOANG <duc-anh-externe.hoang@edf.fr>
Wed, 10 Mar 2021 12:26:29 +0000 (13:26 +0100)
committervsr <vsr@opencascade.com>
Fri, 12 Mar 2021 15:49:41 +0000 (18:49 +0300)
src/GraphicsView/GraphicsView_ViewFrame.h
src/GraphicsView/GraphicsView_ViewPort.h
src/PVViewer/PVViewer_GUIElements.cxx
src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip
src/SALOME_PYQT/SalomePyQt/SalomePyQt_Plot2d.sip

index a8507d3bf54e4affd6e479113426c711065462f4..ca26bbb0c0a34a64c13e03edeb406b865a40f0e7 100644 (file)
@@ -23,6 +23,7 @@
 #include "GraphicsView.h"
 
 #include <SUIT_ViewWindow.h>
+#include <QPainterPath>
 
 class QGraphicsSceneContextMenuEvent;
 class QGraphicsSceneMouseEvent;
index 42e45895da11a1e8e8f26d3b83aacbfbbb455451..74bf6946dd2b8699a5c54c1b14345f9cd1b3d123 100644 (file)
@@ -25,6 +25,7 @@
 #include "GraphicsView_Defs.h"
 
 #include <QGraphicsView>
+#include <QPainterPath>
 
 class QGridLayout;
 class QRubberBand;
index 384d362393e56a3497ceb10e9f07ae2965de6ca3..506a7b6369b7f22b4a40157d911c9cb69b2a07ed 100644 (file)
@@ -143,7 +143,7 @@ void PVViewer_GUIElements::buildPVWidgets()
     // Catalyst Menu
     if (!catalystMenu) {
       catalystMenu = new QMenu(0);
-#if PARAVIEW_VERSION_MAJOR==5 && PARAVIEW_VERSION_MINOR>=6
+#if PARAVIEW_VERSION_MAJOR==5 && PARAVIEW_VERSION_MINOR<9
       pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu, myDesktop);
 #else
       pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu);
index bc30e3450af4aaf21e452ef6d5553917388bbccd..05dff3e05e2d0d6ab377756432cc33252888256b 100644 (file)
@@ -130,9 +130,9 @@ class QtxAction : QWidgetAction
 
 %ConvertToSubClassCode
     if ( qobject_cast<QtxAction*>( sipCpp ) )
-      sipClass = sipClass_QtxAction;
+      sipType = sipType_QtxAction;
     else
-      sipClass = NULL;
+      sipType = NULL;
 %End
 
 public:
@@ -153,9 +153,9 @@ class QtxActionSet : QtxAction
 
 %ConvertToSubClassCode
     if ( qobject_cast<QtxActionSet*>( sipCpp ) )
-      sipClass = sipClass_QtxActionSet;
+      sipType = sipType_QtxActionSet;
     else
-      sipClass = NULL;
+      sipType = NULL;
 %End
 
 public:
@@ -192,9 +192,9 @@ class QtxActionGroup : QtxActionSet
 
 %ConvertToSubClassCode
     if ( qobject_cast<QtxActionGroup*>( sipCpp ) )
-      sipClass = sipClass_QtxActionGroup;
+      sipType = sipType_QtxActionGroup;
     else
-      sipClass = NULL;
+      sipType = NULL;
 %End
 
 public:
@@ -226,9 +226,9 @@ class QtxTreeView : public QTreeView
 
 %ConvertToSubClassCode
     if ( qobject_cast<QtxTreeView*>( sipCpp ) )
-      sipClass = sipClass_QtxTreeView;
+      sipType = sipType_QtxTreeView;
     else
-      sipClass = NULL;
+      sipType = NULL;
 %End
 
 public:
@@ -252,9 +252,9 @@ class UserDefinedContent : public QWidget
 
 %ConvertToSubClassCode
     if ( qobject_cast<UserDefinedContent*>( sipCpp ) )
-      sipClass = sipClass_UserDefinedContent;
+      sipType = sipType_UserDefinedContent;
     else
-      sipClass = NULL;
+      sipType = NULL;
 %End
 
 public:
index 66e2af5992d422f97061c4beb10d6076a8fc9c8f..eb0962e3675728e3f8c939b392b55d66f878e37d 100644 (file)
@@ -55,9 +55,9 @@ class Plot2d_Curve
 
 %ConvertToSubClassCode
     if ( dynamic_cast<Plot2d_Curve*>( sipCpp ) )
-      sipClass = sipClass_Plot2d_Curve;
+      sipType = sipType_Plot2d_Curve;
     else
-      sipClass = NULL;
+      sipType = NULL;
 %End
 
 public: