Salome HOME
Use choice control for groups
[modules/shaper.git] / src / ModuleBase / ModuleBase_ChoiceCtrl.cpp
index 4d915b80194f8a74e6e423f5b7562437cbcc14d6..38afff3ca6c30efbff3e1c77d4778253554e7f83 100644 (file)
@@ -173,3 +173,14 @@ void ModuleBase_ChoiceCtrl::setChoiceList(const QStringList& theChoiceList)
     myCombo->addItems(theChoiceList);
   }
 }
+
+QString ModuleBase_ChoiceCtrl::textValue() const
+{
+  switch (myType) {
+  case RadioButtons:
+    return myButtons->checkedButton()->toolTip();
+  case ComboBox:
+    return myCombo->currentText();
+  }
+  return "";
+}