From c542d822556a4a63e528e5c64f04f0c7d93558a5 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 7 Sep 2015 14:17:40 +0300 Subject: [PATCH] Process "Mode to end" event --- src/XGUI/XGUI_DataModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.2