]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL20206 Qt4 porting: vectors are not displayed in 3D and hangup on edit
authordmv <dmv@opencascade.com>
Tue, 26 Aug 2008 07:36:55 +0000 (07:36 +0000)
committerdmv <dmv@opencascade.com>
Tue, 26 Aug 2008 07:36:55 +0000 (07:36 +0000)
src/VISUGUI/VisuGUI_CutPlanesDlg.cxx
src/VISUGUI/VisuGUI_DeformedShapeAndScalarMapDlg.cxx
src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx
src/VISUGUI/VisuGUI_VectorsDlg.cxx

index 1da83624fe865329ebc71a3ae37adb617e47dc16..ce7b667ac1edffb83e6d2908952d830bc296b17a 100644 (file)
@@ -194,7 +194,8 @@ VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent)
   SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
   int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
   
-  myScaleSpn->setDecimals( aPrecision*(-1) );
+  myScaleSpn->setPrecision( aPrecision*(-1) );
+  myScaleSpn->setDecimals(38);
   myScaleSpn->setValue(0.1);
 
   myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), this);
index 67c3871da058ee8a262f43693defabbca229d17d..e3d180b93549e5687ca208fa46a0775cf220c836 100644 (file)
@@ -103,7 +103,8 @@ VisuGUI_DeformedShapeAndScalarMapDlg::VisuGUI_DeformedShapeAndScalarMapDlg (Salo
   SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
   int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
 
-  ScalFact->setDecimals( aPrecision*(-1) );
+  ScalFact->setPrecision( aPrecision*(-1) );
+  ScalFact->setDecimals( 32 );
   ScalFact->setValue(0.1);
   TopGroupLayout->addWidget(ScalFact, 0, 1);
 
index 6cc673400a8605377ef5ca43ca767edca8efcab8..6f6aa2b46a951d6278af7b28e7f7ad446dac9c78 100644 (file)
@@ -95,8 +95,8 @@ VisuGUI_DeformedShapeDlg::VisuGUI_DeformedShapeDlg (SalomeApp_Module* theModule)
   SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
   int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
 
-  ScalFact->setDecimals( aPrecision ); // ScalFact->setDecimals(38);
-  //  ScalFact->setFormat ( false ); // generic format
+  ScalFact->setPrecision( aPrecision*(-1) );
+  ScalFact->setDecimals(38);
   ScalFact->setValue(0.1);
   TopGroupLayout->addWidget(ScalFact, 0, 1);
 
@@ -163,7 +163,6 @@ void VisuGUI_DeformedShapeDlg::initFromPrsObject (VISU::ColoredPrs3d_i* thePrs,
     myPrsCopy = VISU::TSameAsFactory<VISU::TDEFORMEDSHAPE>().Create(thePrs, VISU::ColoredPrs3d_i::EDoNotPublish);
 
   VisuGUI_ScalarBarBaseDlg::initFromPrsObject(myPrsCopy, theInit);
-
   setFactor(myPrsCopy->GetScale());
   UseMagn->setChecked(myPrsCopy->IsColored());
 
index ed7bcc57e8d93511551730e940ed3078fc9cd289..1f624abbcb491f023d206f6a8edc7f260c21ec18 100644 (file)
@@ -95,7 +95,8 @@ VisuGUI_VectorsDlg::VisuGUI_VectorsDlg (SalomeApp_Module* theModule)
   SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
   int aPrecision = aResourceMgr->integerValue( "VISU", "floating_point_precision", 0 );
 
-  ScalFact->setDecimals( aPrecision*(-1) ); // ScalFact->setDecimals( 5 );
+  ScalFact->setPrecision( aPrecision*(-1) );
+  ScalFact->setDecimals( 32 );
   ScalFact->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
   ScalFact->setValue( 0.1 );