From: rnv Date: Thu, 24 Oct 2013 12:05:53 +0000 (+0000) Subject: Win32 compilation. X-Git-Tag: V7_3_0a1~102 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1e17e9ef94a291c053b1e8a6e6f2ada6ab113859;p=modules%2Fsmesh.git Win32 compilation. --- diff --git a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx index 9078e7b6e..54d8663eb 100644 --- a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx @@ -79,8 +79,6 @@ #include #include -#include - #define SPACING 6 #define MARGIN 11 #define SIZEFACTOR 1.1 @@ -1703,10 +1701,10 @@ void SMESHGUI_ClippingDlg::absolutePlaneToRelative ( double theOrigin[3], double else if( aDirection[0] < 0 && aDirection[1] < 0 && aDirection[2] < 0 && aRot[0] > 0 ) { aRot[0] = aRotation1 + 270.0; aRot[1] = aRotation2 + 90.0; } - SliderRotation1HasMoved( round( aRot[0] ) ); - SliderRotation1->setValue( round( aRot[0] ) ); - SliderRotation2HasMoved( round( aRot[1] ) ); - SliderRotation2->setValue( round( aRot[1] ) ); + SliderRotation1HasMoved( qRound( aRot[0] ) ); + SliderRotation1->setValue( qRound( aRot[0] ) ); + SliderRotation2HasMoved( qRound( aRot[1] ) ); + SliderRotation2->setValue( qRound( aRot[1] ) ); int aCurPlaneIndex = ComboBoxPlanes->currentIndex(); const SMESH::TPlaneData& aPlaneData = myPlanes[ aCurPlaneIndex ]; @@ -1722,8 +1720,8 @@ void SMESHGUI_ClippingDlg::absolutePlaneToRelative ( double theOrigin[3], double else if( aDist < 0.0 ) aDist = 0.0; - SliderDistanceHasMoved( round( aDist*100 ) ); - SliderDistance->setValue( round( aDist*100 ) ); + SliderDistanceHasMoved( qRound( aDist*100 ) ); + SliderDistance->setValue( qRound( aDist*100 ) ); return; }