From: vsr Date: Wed, 15 Feb 2012 14:34:38 +0000 (+0000) Subject: 0021179: EDF 1654 SMESH GEOM: better look'n'feel X-Git-Tag: V6_5_0a1~61 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e767d761d4fc6ba92ddb28798dce6bf65a86cda;p=modules%2Fgeom.git 0021179: EDF 1654 SMESH GEOM: better look'n'feel Introduce gradient background in the 3D viewer (rollback previous integration) --- diff --git a/src/EntityGUI/EntityGUI_SketcherDlg.cxx b/src/EntityGUI/EntityGUI_SketcherDlg.cxx index b39843b47..db3663ce1 100644 --- a/src/EntityGUI/EntityGUI_SketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_SketcherDlg.cxx @@ -1530,7 +1530,8 @@ void EntityGUI_SketcherDlg::OnPointSelected(Qt::KeyboardModifiers modifiers, con SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow(); OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort(); - Qtx::BackgroundData bg = vp->background(); + QString theImgFileName; + vp->background().texture( theImgFileName ); ////////////// VSR: temporarily double x, y; x = y = 0; @@ -1549,7 +1550,7 @@ void EntityGUI_SketcherDlg::OnPointSelected(Qt::KeyboardModifiers modifiers, con gp_Pnt aTrsfPnt; GEOMBase::VertexToPoint( aShape, aTrsfPnt ); - autoApply = ( (getPnt2ConstructorId() == 1) && (!bg.isValid()) ); // If no additional argument needed after selection and there is a backgroundimage + autoApply = ( (getPnt2ConstructorId() == 1) && (!theImgFileName.isEmpty()) ); // If no additional argument needed after selection and there is a backgroundimage // -> apply automatically if ( getPnt1ConstructorId() == 0 ){ // Relative selection mode