From 0f1c92a1d36859db256522b227907e6b08bad309 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 8 Sep 2009 12:57:49 +0000 Subject: [PATCH] Fix problem with OCC viewer and qt 4.5 on Windows --- src/OCCViewer/OCCViewer_ViewPort.cxx | 8 ++++++++ src/OCCViewer/OCCViewer_ViewPort.h | 2 ++ 2 files changed, 10 insertions(+) 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(); -- 2.39.2