From: akl Date: Thu, 20 Mar 2008 08:33:28 +0000 (+0000) Subject: Fix of IPAL19278(Number Of Contour is active by Default, but for Surface must be... X-Git-Tag: V5_0_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a8ca9ad68f4c16b742cc4218152ddd8523d3bcc;p=modules%2Fvisu.git Fix of IPAL19278(Number Of Contour is active by Default, but for Surface must be off): use click() instead of setChecked(bool) for radio-buttons to emit buttonClicked(int) signal in the QButtonGroup. --- diff --git a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx index 32a76a79..a4fcd799 100644 --- a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx +++ b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx @@ -269,12 +269,12 @@ VisuGUI_Plot3DPane::VisuGUI_Plot3DPane (QWidget* parent) bottomLayout->addWidget(PreviewChkB, 3, 0); // signals and slots connections - connect(GBOrientation, SIGNAL(buttonClicked(int)), this, SLOT(orientationChanged(int))); + connect(GBOrientation, SIGNAL(buttonClicked(int)), this, SLOT(orientationChanged(int))); connect(Rot1, SIGNAL(valueChanged(double)), this, SLOT(updatePreview())); connect(Rot2, SIGNAL(valueChanged(double)), this, SLOT(updatePreview())); connect(PositionSpn, SIGNAL(valueChanged(double)), this, SLOT(onPositionSpn())); connect(RelativeChkB, SIGNAL(toggled(bool)), this, SLOT(onRelativePos(bool))); - connect(GBPrsType, SIGNAL(buttonClicked(int)), this, SLOT(onPrsType(int))); + connect(GBPrsType, SIGNAL(buttonClicked(int)), this, SLOT(onPrsType(int))); connect(PreviewChkB, SIGNAL(toggled(bool)), this, SLOT(updatePreview())); } @@ -448,8 +448,7 @@ void VisuGUI_Plot3DPane::initFromPrsObject(VISU::Plot3D_i* thePrs) case VISU::Plot3D::YZ: id = 1; break; default: id = 2; } - GBOrientation->button(id)->setChecked( true ); - //? orientationChanged(id); + GBOrientation->button(id)->click(); // rotation Rot1->setValue(thePrs->GetRotateX() * 180./PI); @@ -465,9 +464,7 @@ void VisuGUI_Plot3DPane::initFromPrsObject(VISU::Plot3D_i* thePrs) // prs type id = thePrs->GetIsContourPrs() ? CONTOUR_PRS_ID : SURFACE_PRS_ID; - //GBPrsType->setButton(id); - GBPrsType->button(id)->setChecked( true ); - //onPrsType(id); + GBPrsType->button(id)->click(); // nb contours NbContoursSpn->setValue(thePrs->GetNbOfContours()); @@ -553,8 +550,7 @@ void VisuGUI_Plot3DPane::setPlane(int theOrientation, double theXRotation, doubl case VISU::Plot3D::YZ: id = 1; break; default: id = 2; } - GBOrientation->button(id)->setChecked(true); - //orientationChanged(id); + GBOrientation->button(id)->click(); GBoxOrient->setEnabled(false);