]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Crash clipping plane fixed (bug 19183)
authorvsv <vsv@opencascade.com>
Fri, 14 Mar 2008 13:28:58 +0000 (13:28 +0000)
committervsv <vsv@opencascade.com>
Fri, 14 Mar 2008 13:28:58 +0000 (13:28 +0000)
src/VISUGUI/VisuGUI_ClippingDlg.cxx

index aac4baf194de424ce2d376824f54385464e31118..c8943892c72e777a87f391d9bc937335685c5aa9 100644 (file)
@@ -311,9 +311,10 @@ VisuGUI_ClippingDlg::VisuGUI_ClippingDlg (VisuGUI* theModule,
   GroupButtons->setSizePolicy( aSizePolicy );
   GroupButtons->setGeometry(QRect(10, 10, 281, 48));
   //GroupButtons->setColumnLayout(0, Qt::Vertical);
-  GroupButtons->layout()->setSpacing(0);
-  GroupButtons->layout()->setMargin(0);
+  //GroupButtons->layout()->setSpacing(0);
+  //GroupButtons->layout()->setMargin(0);
   QGridLayout* GroupButtonsLayout = new QGridLayout (GroupButtons);
+  GroupButtons->setLayout(GroupButtonsLayout);
   GroupButtonsLayout->setAlignment(Qt::AlignTop);
   GroupButtonsLayout->setSpacing(6);
   GroupButtonsLayout->setMargin(11);
@@ -452,11 +453,12 @@ QWidget* VisuGUI_ClippingDlg::createIJKParamsTab()
 
   // Axis group
   ButtonGroupIJKAxis = new QButtonGroup ( WidgetIJKTab);
-  QGroupBox* aGBGroupBoxIJKAxis= new QGroupBox(tr("GRP_IJK_AXIS"), WidgetIJKTab );
+  //QGroupBox* aGBGroupBoxIJKAxis= new QGroupBox(tr("GRP_IJK_AXIS"), WidgetIJKTab );
+  GroupBoxIJKAxis= new QGroupBox(tr("GRP_IJK_AXIS"), WidgetIJKTab );
   QHBoxLayout* aHBLay = new QHBoxLayout( GroupBoxIJKAxis  );
-  ButtonGroupIJKAxis->addButton( new QRadioButton (tr("I_RADIO_BTN"), GroupBoxIJKAxis) );  // 0
-  ButtonGroupIJKAxis->addButton( new QRadioButton (tr("J_RADIO_BTN"), GroupBoxIJKAxis) );  // 1
-  ButtonGroupIJKAxis->addButton( new QRadioButton (tr("K_RADIO_BTN"), GroupBoxIJKAxis) );  // 2
+  ButtonGroupIJKAxis->addButton( new QRadioButton (tr("I_RADIO_BTN"), GroupBoxIJKAxis), 0 );  // 0
+  ButtonGroupIJKAxis->addButton( new QRadioButton (tr("J_RADIO_BTN"), GroupBoxIJKAxis), 1 );  // 1
+  ButtonGroupIJKAxis->addButton( new QRadioButton (tr("K_RADIO_BTN"), GroupBoxIJKAxis), 2 );  // 2
   ButtonGroupIJKAxis->button(0)->setChecked(true);
   aHBLay->addWidget( ButtonGroupIJKAxis->button(0) );
   aHBLay->addWidget( ButtonGroupIJKAxis->button(1) );
@@ -471,7 +473,7 @@ QWidget* VisuGUI_ClippingDlg::createIJKParamsTab()
   CheckBoxIJKPlaneReverse = new QCheckBox (tr("REVERSE_NORMAL_CHK"), WidgetIJKTab);
   CheckBoxIJKPlaneReverse->setChecked(false);
 
-  IJKParametersLayout->addWidget(aGBGroupBoxIJKAxis, 0, 0, 1, 2);
+  IJKParametersLayout->addWidget(GroupBoxIJKAxis, 0, 0, 1, 2);
   IJKParametersLayout->addWidget(TextLabelIJKIndex,          1, 0);
   IJKParametersLayout->addWidget(SpinBoxIJKIndex,            1, 1);
   IJKParametersLayout->addWidget(CheckBoxIJKPlaneReverse, 2, 0);