]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Use name for radio box if an icon is not defined
authorvsv <vsv@opencascade.com>
Wed, 19 Sep 2018 08:55:43 +0000 (11:55 +0300)
committervsv <vsv@opencascade.com>
Wed, 19 Sep 2018 08:56:09 +0000 (11:56 +0300)
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);