From 3784a7302dae1c5a7f284a9489ced604a3abba2a Mon Sep 17 00:00:00 2001 From: DUC ANH HOANG Date: Wed, 10 Mar 2021 13:26:29 +0100 Subject: [PATCH] nabil tuleap23995 --- src/GraphicsView/GraphicsView_ViewFrame.cxx | 2 +- src/GraphicsView/GraphicsView_ViewFrame.h | 2 +- src/PVViewer/PVViewer_GUIElements.cxx | 4 +++- src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip | 20 +++++++++---------- .../SalomePyQt/SalomePyQt_Plot2d.sip | 4 ++-- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/GraphicsView/GraphicsView_ViewFrame.cxx b/src/GraphicsView/GraphicsView_ViewFrame.cxx index f075f2392..1ba3cb75a 100644 --- a/src/GraphicsView/GraphicsView_ViewFrame.cxx +++ b/src/GraphicsView/GraphicsView_ViewFrame.cxx @@ -42,7 +42,7 @@ #include #include #include - +#include //======================================================================= // Name : GraphicsView_ViewFrame // Purpose : Constructor diff --git a/src/GraphicsView/GraphicsView_ViewFrame.h b/src/GraphicsView/GraphicsView_ViewFrame.h index a8507d3bf..ffa7c3596 100644 --- a/src/GraphicsView/GraphicsView_ViewFrame.h +++ b/src/GraphicsView/GraphicsView_ViewFrame.h @@ -29,7 +29,7 @@ class QGraphicsSceneMouseEvent; class QGraphicsSceneWheelEvent; class QAction; - +class QPainterPath; class SUIT_Desktop; class GraphicsView_Viewer; diff --git a/src/PVViewer/PVViewer_GUIElements.cxx b/src/PVViewer/PVViewer_GUIElements.cxx index 384d36239..5d9d4f519 100644 --- a/src/PVViewer/PVViewer_GUIElements.cxx +++ b/src/PVViewer/PVViewer_GUIElements.cxx @@ -143,7 +143,9 @@ 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); +#elif PARAVIEW_VERSION_MAJOR==5 && PARAVIEW_VERSION_MINOR>=6 pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu, myDesktop); #else pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu); diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip index bc30e3450..05dff3e05 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.sip @@ -130,9 +130,9 @@ class QtxAction : QWidgetAction %ConvertToSubClassCode if ( qobject_cast( 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( 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( 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( 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( sipCpp ) ) - sipClass = sipClass_UserDefinedContent; + sipType = sipType_UserDefinedContent; else - sipClass = NULL; + sipType = NULL; %End public: diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt_Plot2d.sip b/src/SALOME_PYQT/SalomePyQt/SalomePyQt_Plot2d.sip index 66e2af599..eb0962e36 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt_Plot2d.sip +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt_Plot2d.sip @@ -55,9 +55,9 @@ class Plot2d_Curve %ConvertToSubClassCode if ( dynamic_cast( sipCpp ) ) - sipClass = sipClass_Plot2d_Curve; + sipType = sipType_Plot2d_Curve; else - sipClass = NULL; + sipType = NULL; %End public: -- 2.39.2