From: vsv Date: Tue, 13 Dec 2016 10:02:59 +0000 (+0300) Subject: Issue #1903: Set default value for string X-Git-Tag: before_porting_8.2.0~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7be77c97a026a5ee5a396af6281dfa17e1bf1127;p=modules%2Fshaper.git Issue #1903: Set default value for string --- diff --git a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp index b3614907c..ceab82f12 100644 --- a/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp +++ b/src/CollectionPlugin/CollectionPlugin_WidgetField.cpp @@ -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; } } }