From: vsr Date: Tue, 8 Sep 2009 12:57:49 +0000 (+0000) Subject: Fix problem with OCC viewer and qt 4.5 on Windows X-Git-Tag: V5_1_3rc1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f1c92a1d36859db256522b227907e6b08bad309;p=modules%2Fgui.git Fix problem with OCC viewer and qt 4.5 on Windows --- diff --git a/src/OCCViewer/OCCViewer_ViewPort.cxx b/src/OCCViewer/OCCViewer_ViewPort.cxx index a975fe049..bd6251137 100755 --- a/src/OCCViewer/OCCViewer_ViewPort.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort.cxx @@ -450,6 +450,14 @@ void OCCViewer_ViewPort::onUpdate() { } +/*! + Get paint engine for the OpenGL viewer. [ virtual public ] +*/ +QPaintEngine* OCCViewer_ViewPort::paintEngine() const +{ + return 0; +} + /*! Creates the popup. [ virtual protected ] */ diff --git a/src/OCCViewer/OCCViewer_ViewPort.h b/src/OCCViewer/OCCViewer_ViewPort.h index 48e4dccb0..74c22f68c 100755 --- a/src/OCCViewer/OCCViewer_ViewPort.h +++ b/src/OCCViewer/OCCViewer_ViewPort.h @@ -67,6 +67,8 @@ public: virtual void onUpdate(); + virtual QPaintEngine* paintEngine() const; + protected: // enum ViewType { Type2D, Type3D }; void selectVisualId();