From: vsv Date: Tue, 6 May 2014 12:51:58 +0000 (+0400) Subject: Small fixes X-Git-Tag: V_0.2~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9276e5701fd1a77da805a7ad0c7cc72c93338eb7;p=modules%2Fshaper.git Small fixes --- 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); }