]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Process "Mode to end" event
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 7 Sep 2015 11:17:40 +0000 (14:17 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 7 Sep 2015 12:53:48 +0000 (15:53 +0300)
src/XGUI/XGUI_DataModel.cpp

index 5aec6885cc0d3e5a886470598179a5d076cad40c..31f8f893f71d10969f9ac093740d7fe0835e03b4 100644 (file)
@@ -220,6 +220,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& 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();