From 9215b9babfa8147ea1705b8e8480f4dd19ac4b43 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 19 Sep 2018 11:55:43 +0300 Subject: [PATCH] Use name for radio box if an icon is not defined --- src/ModuleBase/ModuleBase_WidgetRadiobox.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.2