- myCriterionGrp = new QGroupBox(3, Qt::Vertical, tr("SPLIT_JOIN_CRITERION"), aMainGrp);
-
- myGroupChoice = new QButtonGroup(3, Qt::Vertical, myCriterionGrp);
- myGroupChoice->setInsideMargin(0);
- myGroupChoice->setFrameStyle(QFrame::NoFrame);
- (new QRadioButton(tr("USE_DIAGONAL_1_3"), myGroupChoice))->setChecked(true);
- (new QRadioButton(tr("USE_DIAGONAL_2_4"), myGroupChoice));
- (new QRadioButton(tr("USE_NUMERIC_FUNC"), myGroupChoice));
+ myCriterionGrp = new QGroupBox(tr("SPLIT_JOIN_CRITERION"), aMainGrp);
+ QVBoxLayout* aCriterionLayout = new QVBoxLayout(myCriterionGrp);
+ aCriterionLayout->setMargin(MARGIN);
+ aCriterionLayout->setSpacing(SPACING);
+
+ myChoiceWidget = new QWidget(myCriterionGrp);
+ myGroupChoice = new QButtonGroup(myChoiceWidget);
+ QVBoxLayout* aGroupChoiceLayout = new QVBoxLayout(myChoiceWidget);
+ aGroupChoiceLayout->setMargin(0);
+ aGroupChoiceLayout->setSpacing(SPACING);
+
+ QRadioButton* aDiag13RB = new QRadioButton(tr("USE_DIAGONAL_1_3"), myChoiceWidget);
+ QRadioButton* aDiag24RB = new QRadioButton(tr("USE_DIAGONAL_2_4"), myChoiceWidget);
+ QRadioButton* aNumFuncRB = new QRadioButton(tr("USE_NUMERIC_FUNC"), myChoiceWidget);
+
+ aGroupChoiceLayout->addWidget(aDiag13RB);
+ aGroupChoiceLayout->addWidget(aDiag24RB);
+ aGroupChoiceLayout->addWidget(aNumFuncRB);
+ myGroupChoice->addButton(aDiag13RB, 0);
+ myGroupChoice->addButton(aDiag24RB, 1);
+ myGroupChoice->addButton(aNumFuncRB, 2);
+ aDiag13RB->setChecked(true);