]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix compilation errors BR_WPdev_For_5_0
authorabd <abd@opencascade.com>
Thu, 31 Jul 2008 10:09:53 +0000 (10:09 +0000)
committerabd <abd@opencascade.com>
Thu, 31 Jul 2008 10:09:53 +0000 (10:09 +0000)
src/OCCViewer/OCCViewer_ViewWindow.cxx

index c1e090efe484603f16da52deccb327dc48af251a..b14625513951d03e9175891c7fd0662109b41fe4 100755 (executable)
 
 static QEvent* l_mbPressEvent = 0;
 
+#ifdef WIN32
+# include <QWindowsStyle>
+#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);