From b808659b141347c4167b373a2097f806b3e3b1ad Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 14 Mar 2008 13:28:58 +0000 Subject: [PATCH] Crash clipping plane fixed (bug 19183) --- src/VISUGUI/VisuGUI_ClippingDlg.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.cxx b/src/VISUGUI/VisuGUI_ClippingDlg.cxx index aac4baf1..c8943892 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.cxx +++ b/src/VISUGUI/VisuGUI_ClippingDlg.cxx @@ -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); -- 2.39.2