#3037 AppFwk - Table Editor : Update UI for all cells

This is required when updating the table editor for the first time, and when adding a new row. Will potentially cause performance issues for large tables.
This commit is contained in:
Magne Sjaastad 2018-06-18 10:42:21 +02:00
parent 3d3585515f
commit 4fd2f982fd

View File

@ -423,6 +423,20 @@ void PdmUiTableViewQModel::setPdmData(PdmChildArrayFieldHandle* listField, const
recreateTableItemEditors();
endResetModel();
if (m_pdmList)
{
// Update UI for all cells, as the content potentially has changed
// This will probably cause performance issues for large tables
std::vector<PdmObjectHandle*> objects;
m_pdmList->childObjects(&objects);
for (auto obj : objects)
{
obj->uiCapability()->updateConnectedEditors();
}
}
}