From: abd Date: Wed, 16 Jan 2008 14:58:38 +0000 (+0000) Subject: Bug 18580 X-Git-Tag: for_M2008_07022008~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c674c632cc8b647a922da0a13eddafe7fa91c5c;p=modules%2Fgui.git Bug 18580 Fix for compilation with sip 4.7.3 --- diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx index 048145b73..d7f8dc59c 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx @@ -45,8 +45,11 @@ #endif #include "sipAPISalomePyQtGUI.h" +#include +#if SIP_VERSION < 0x040700 #include "sipqtQWidget.h" #include "sipqtQPopupMenu.h" +#endif #include diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip b/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip index c550e2409..91419367b 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip @@ -11,6 +11,10 @@ %Import qtmod.sip +%ExportedHeaderCode +#include +%End + class SALOME_Selection : QObject { %TypeHeaderCode @@ -29,6 +33,8 @@ signals: void currentSelectionChanged(); }; +//%ExportedHeaderCode + enum MenuName { File = 1, View = 2, @@ -63,12 +69,13 @@ enum PrefType { PT_User }; +//%End + class QtxAction : QAction { %TypeHeaderCode #include %End - private: QtxAction(const QtxAction &); }; @@ -169,3 +176,4 @@ public: static void message( const QString&, bool = true ) /ReleaseGIL/ ; static void clearMessages() /ReleaseGIL/ ; }; +