From 7ae3b7ead9f63d85c353d9df3752b94bb56977dc Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 31 Jul 2008 10:09:53 +0000 Subject: [PATCH] Fix compilation errors --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.2