From: vsv Date: Mon, 7 Sep 2015 11:17:40 +0000 (+0300) Subject: Process "Mode to end" event X-Git-Tag: V_1.4.0_beta4~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c542d822556a4a63e528e5c64f04f0c7d93558a5;p=modules%2Fshaper.git Process "Mode to end" event --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 5aec6885c..31f8f893f 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -220,6 +220,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess continue; QModelIndex aIndex = objectIndex(aObject); QModelIndex aParent = parent(aIndex); + int aChildNb = rowCount(aParent); + QModelIndex aStartIndex = index(0, 0, aParent); + QModelIndex aEndIndex = index(aChildNb - 1, 0, aParent); + emit dataChanged(aStartIndex, aEndIndex); } } else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_DOCUMENT_CHANGED)) { DocumentPtr aDoc = ModelAPI_Session::get()->activeDocument();