- myElemTypeGroup = new QButtonGroup(1, Qt::Vertical, aMainGrp, "Group types");
- myElemTypeGroup->setTitle(tr("SMESH_ELEMENT_TYPE"));
- myElemTypeGroup->setExclusive(true);
-
- (new QRadioButton( tr("SMESH_EDGE") , myElemTypeGroup))->setChecked(true);
- new QRadioButton( tr("SMESH_FACE") , myElemTypeGroup);
- new QRadioButton( tr("SMESH_VOLUME"), myElemTypeGroup);
-
+ myElemTypeBox = new QGroupBox(tr("SMESH_ELEMENT_TYPE"), aMainGrp);
+ myElemTypeGroup = new QButtonGroup(aMainGrp);
+ QHBoxLayout* myElemTypeBoxLayout = new QHBoxLayout(myElemTypeBox);
+ myElemTypeBoxLayout->setMargin(MARGIN);
+ myElemTypeBoxLayout->setSpacing(SPACING);
+
+ QRadioButton* aEdgeRb = new QRadioButton( tr("SMESH_EDGE"), myElemTypeBox);
+ QRadioButton* aFaceRb = new QRadioButton( tr("SMESH_FACE"), myElemTypeBox);
+ QRadioButton* aVolumeRb = new QRadioButton( tr("SMESH_VOLUME"), myElemTypeBox);
+
+ myElemTypeBoxLayout->addWidget(aEdgeRb);
+ myElemTypeBoxLayout->addWidget(aFaceRb);
+ myElemTypeBoxLayout->addWidget(aVolumeRb);
+ myElemTypeGroup->addButton(aEdgeRb, 0);
+ myElemTypeGroup->addButton(aFaceRb, 1);
+ myElemTypeGroup->addButton(aVolumeRb, 2);
+ aEdgeRb->setChecked(true);
+