From: abd Date: Thu, 31 Jul 2008 10:09:53 +0000 (+0000) Subject: Fix compilation errors X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7ae3b7ead9f63d85c353d9df3752b94bb56977dc;p=modules%2Fgui.git Fix compilation errors --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index c1e090efe..b14625513 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -66,6 +66,10 @@ static QEvent* l_mbPressEvent = 0; +#ifdef WIN32 +# include +#endif + const char* imageZoomCursor[] = { "32 32 3 1", ". c None", @@ -888,6 +892,9 @@ void OCCViewer_ViewWindow::drawRect() { if ( !myRectBand ) { myRectBand = new QRubberBand( QRubberBand::Rectangle, myViewPort ); +#ifdef WIN32 + myRectBand->setStyle(new QWindowsStyle); +#endif QPalette palette; palette.setColor(myRectBand->foregroundRole(), Qt::white); myRectBand->setPalette(palette);