]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update source formatting
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 27 Dec 2016 15:15:07 +0000 (18:15 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 27 Dec 2016 15:15:07 +0000 (18:15 +0300)
src/Model/Model_ResultField.h
src/XGUI/XGUI_DataModel.cpp

index 315484297c90d9c5cd4fc7baccac46e402b6f20c..38de177a1a9cdc848c479be9d091c44c46cc184c 100644 (file)
@@ -25,7 +25,7 @@ public:
   class Model_FieldStep : public ModelAPI_ResultField::ModelAPI_FieldStep
   {
   public:
-    Model_FieldStep(ModelAPI_ResultField* theParent, int theId) 
+    Model_FieldStep(ModelAPI_ResultField* theParent, int theId)
       : myParent(theParent), myId(theId) {};
 
     virtual ModelAPI_ResultField* field() const { return myParent; }
index ccc24dfb5a63cfc8751745e70d4154564b02954b..55615ee13248e4c422a62d52a441728e445f5ec9 100644 (file)
@@ -256,7 +256,7 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
         FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(aObject);
         if (aFeature.get() && aFeature->firstResult().get()
           && (aFeature->firstResult()->groupName() == ModelAPI_ResultField::group())) {
-            ResultFieldPtr aResult = 
+            ResultFieldPtr aResult =
               std::dynamic_pointer_cast<ModelAPI_ResultField>(aFeature->firstResult());
             QModelIndex aIndex = objectIndex(aResult);
             removeRows(0, aResult->stepsSize(), aIndex);
@@ -333,7 +333,7 @@ ObjectPtr XGUI_DataModel::object(const QModelIndex& theIndex) const
 {
   if (theIndex.internalId() == 0) // this is a folder
     return ObjectPtr();
-  ModelAPI_Object* aObj = 
+  ModelAPI_Object* aObj =
     dynamic_cast<ModelAPI_Object*>((ModelAPI_Entity*)theIndex.internalPointer());
   if (!aObj)
     return ObjectPtr();
@@ -451,7 +451,7 @@ QVariant XGUI_DataModel::data(const QModelIndex& theIndex, int theRole) const
         }
       }
     } else {
-      ModelAPI_Object* aObj = 
+      ModelAPI_Object* aObj =
         dynamic_cast<ModelAPI_Object*>((ModelAPI_Entity*)theIndex.internalPointer());
       if (aObj) {
         switch (theRole) {
@@ -482,7 +482,7 @@ QVariant XGUI_DataModel::data(const QModelIndex& theIndex, int theRole) const
         switch (theRole) {
         case Qt::DisplayRole:
           {
-            ModelAPI_ResultField::ModelAPI_FieldStep* aStep = 
+            ModelAPI_ResultField::ModelAPI_FieldStep* aStep =
               dynamic_cast<ModelAPI_ResultField::ModelAPI_FieldStep*>
               ((ModelAPI_Entity*)theIndex.internalPointer());
             if (aStep) {
@@ -626,7 +626,7 @@ QModelIndex XGUI_DataModel::index(int theRow, int theColumn, const QModelIndex &
           }
         }
       } else {
-        ModelAPI_Object* aParentObj = 
+        ModelAPI_Object* aParentObj =
           dynamic_cast<ModelAPI_Object*>((ModelAPI_Entity*)theParent.internalPointer());
 
         // Check for Part feature
@@ -691,7 +691,7 @@ QModelIndex XGUI_DataModel::parent(const QModelIndex& theIndex) const
     ObjectPtr aObj = object(theIndex);
     if (!aObj.get()) {
       // It can b e a step of a field
-      ModelAPI_ResultField::ModelAPI_FieldStep* aStep = 
+      ModelAPI_ResultField::ModelAPI_FieldStep* aStep =
         dynamic_cast<ModelAPI_ResultField::ModelAPI_FieldStep*>
         ((ModelAPI_Entity*)theIndex.internalPointer());
       if (aStep) {