]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetRadiobox.cpp
Salome HOME
Use name for radio box if an icon is not defined
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetRadiobox.cpp
index cf93559565c01d321f0949e65b2514e13bd819f6..11f4a0642c9680df17838ab145d15c31e18bc0a1 100644 (file)
@@ -53,7 +53,11 @@ int ModuleBase_WidgetRadiobox::addPage(ModuleBase_PageBase* thePage,
   QVBoxLayout* aLay = new QVBoxLayout(aWgt);
   aLay->setContentsMargins(0, 0, 0, 0);
 
-  QRadioButton* aButton = new QRadioButton(aWgt);
+  QRadioButton* aButton;
+  if (theIcon.isNull())
+    aButton = new QRadioButton(theName, aWgt);
+  else
+    aButton = new QRadioButton(aWgt);
   aButton->setToolTip(theName);
   aLay->addStretch();
   aLay->addWidget(aButton);