From: vsv Date: Wed, 19 Sep 2018 08:55:43 +0000 (+0300) Subject: Use name for radio box if an icon is not defined X-Git-Tag: V9_2_0a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9215b9babfa8147ea1705b8e8480f4dd19ac4b43;p=modules%2Fshaper.git Use name for radio box if an icon is not defined --- diff --git a/src/ModuleBase/ModuleBase_WidgetRadiobox.cpp b/src/ModuleBase/ModuleBase_WidgetRadiobox.cpp index cf9355956..11f4a0642 100644 --- a/src/ModuleBase/ModuleBase_WidgetRadiobox.cpp +++ b/src/ModuleBase/ModuleBase_WidgetRadiobox.cpp @@ -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);