From: apo Date: Fri, 16 Dec 2005 09:36:25 +0000 (+0000) Subject: To remove the following compiler warning: X-Git-Tag: TG-D5-38-2003_D2005-20-12~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a33c01c4bee7d05fa723ea64bedb27724e825a9a;p=modules%2Fvisu.git To remove the following compiler warning: /data/apo/MERGE/VISU_SRC/src/VVTK/VVTK_PickingDlg.cxx: In member function `void VVTK_PickingDlg::Update()': /data/apo/MERGE/VISU_SRC/src/VVTK/VVTK_PickingDlg.cxx:247: warning: passing ` double' for converting 1 of `virtual void QtxIntSpinBox::setValue(int)' --- diff --git a/src/VVTK/VVTK_PickingDlg.cxx b/src/VVTK/VVTK_PickingDlg.cxx index 0d9052eb..06e1dabb 100644 --- a/src/VVTK/VVTK_PickingDlg.cxx +++ b/src/VVTK/VVTK_PickingDlg.cxx @@ -244,8 +244,7 @@ void VVTK_PickingDlg::Update() myCursorSizeSpinBox->setValue( myPickingSettings->GetCursorSize() ); myPyramidHeightSpinBox->setValue( myPickingSettings->GetPyramidHeight() ); myPointToleranceSpinBox->setValue( myPickingSettings->GetPointTolerance() ); - myTransparencySpinBox->setValue( myPickingSettings->GetInfoWindowTransparency() * 100.0 ); - myTransparencySpinBox->setValue( ( int )myPickingSettings->GetInfoWindowTransparency() * 100 ); + myTransparencySpinBox->setValue( int(myPickingSettings->GetInfoWindowTransparency() * 100.0) ); myPositionComboBox->setCurrentItem( myPickingSettings->GetInfoWindowPosition() ); myZoomFactorSpinBox->setValue( myPickingSettings->GetZoomFactor() ); myStepNumberSpinBox->setValue( myPickingSettings->GetStepNumber() );