From 9276e5701fd1a77da805a7ad0c7cc72c93338eb7 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 6 May 2014 16:51:58 +0400 Subject: [PATCH] Small fixes --- src/XGUI/XGUI_ViewPort.h | 2 +- src/XGUI/XGUI_ViewWindow.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_ViewPort.h b/src/XGUI/XGUI_ViewPort.h index fa4104508..a0f9be0db 100644 --- a/src/XGUI/XGUI_ViewPort.h +++ b/src/XGUI/XGUI_ViewPort.h @@ -17,7 +17,7 @@ Q_OBJECT public: XGUI_ViewPort(XGUI_ViewWindow* theParent, const Handle(V3d_Viewer)& theViewer, V3d_TypeOfView theType = V3d_ORTHOGRAPHIC); - ~XGUI_ViewPort(); + virtual ~XGUI_ViewPort(); virtual QPaintEngine* paintEngine() const { diff --git a/src/XGUI/XGUI_ViewWindow.cpp b/src/XGUI/XGUI_ViewWindow.cpp index 12c92e6fa..18cc94177 100644 --- a/src/XGUI/XGUI_ViewWindow.cpp +++ b/src/XGUI/XGUI_ViewWindow.cpp @@ -112,6 +112,8 @@ void ViewerToolbar::paintEvent(QPaintEvent* theEvent) style->drawPrimitive(QStyle::PE_IndicatorToolBarHandle, &aOpt, &aPainter, this); } + + //************************************************************************** ViewerLabel::ViewerLabel(QWidget* theParent, XGUI_ViewPort* thePort) : QLabel(theParent), myVPort(thePort), myResize(false) @@ -131,6 +133,7 @@ void ViewerLabel::paintEvent(QPaintEvent* theEvent) QImage aImg = myVPort->dumpView(aImgRect, myResize); if (!aImg.isNull()) QPainter(this).drawImage(aRect, aImg); + myResize = false; QLabel::paintEvent(theEvent); } -- 2.39.2