]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1903: Set default value for string
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 13 Dec 2016 10:02:59 +0000 (13:02 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 13 Dec 2016 10:02:59 +0000 (13:02 +0300)
src/CollectionPlugin/CollectionPlugin_WidgetField.cpp

index b3614907cf100d6cfaa21f8b5b95e6f38084dc59..ceab82f125c8d9544decf08ca910e094387b7061 100644 (file)
@@ -372,6 +372,9 @@ QTableWidgetItem* CollectionPlugin_WidgetField::createDefaultItem() const
   case ModelAPI_AttributeTables::BOOLEAN:
     aItem->setText(MYFalse);
     break;
+  case ModelAPI_AttributeTables::STRING:
+    aItem->setText("");
+    break;
   }
   return aItem;
 }
@@ -892,6 +895,9 @@ void CollectionPlugin_WidgetField::onFieldTypeChanged(int theIdx)
             case ModelAPI_AttributeTables::BOOLEAN:
               aTable->item(j, i)->setText(MYFalse);
               break;
+            case ModelAPI_AttributeTables::STRING:
+              aTable->item(j, i)->setText("");
+              break;
             }
           }
         }