X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSVTK%2FSVTK_RenderWindowInteractor.h;h=e04a2edbfd9d48bd08df692566afbf527d79a27e;hb=refs%2Fheads%2Fngr%2Fpython3_dev_pv5.4;hp=1c34af0ace6ebf00c44df77fac0489794fcb1021;hpb=26ac7ca874ce9a796ff7ad43685f42afca635df9;p=modules%2Fgui.git diff --git a/src/SVTK/SVTK_RenderWindowInteractor.h b/src/SVTK/SVTK_RenderWindowInteractor.h index 1c34af0ac..e04a2edbf 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.h +++ b/src/SVTK/SVTK_RenderWindowInteractor.h @@ -122,12 +122,16 @@ class SVTK_EXPORT QVTK_RenderWindowInteractor: public QWidget virtual void focusOutEvent( QFocusEvent* ); //! To handle native events (from such devices as SpaceMouse) -#ifdef WIN32 +// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5 +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) +#if defined(WIN32) virtual bool winEvent( MSG*, long* ); -#else +#elif !defined(__APPLE__) virtual bool x11Event( XEvent *e ); #endif - +#else + virtual bool nativeEvent( const QByteArray&, void*, long* ); +#endif vtkSmartPointer myRenderWindow; vtkSmartPointer myDevice; };