]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction according to coding standards
authorvsv <vsv@opencascade.com>
Tue, 27 Jun 2017 13:28:08 +0000 (16:28 +0300)
committervsv <vsv@opencascade.com>
Tue, 27 Jun 2017 13:28:08 +0000 (16:28 +0300)
src/XGUI/XGUI_DataModel.cpp
src/XGUI/XGUI_ObjectsBrowser.cpp

index 196957cc5f871da697a783a2a8074f3697645cf9..9ba1da899a1fe9a427c64f80b4370a03907ae9ce 100644 (file)
@@ -886,7 +886,8 @@ Qt::ItemFlags XGUI_DataModel::flags(const QModelIndex& theIndex) const
 }
 
 //******************************************************
-QModelIndex XGUI_DataModel::findDocumentRootIndex(const ModelAPI_Document* theDoc, int aColumn) const
+QModelIndex
+  XGUI_DataModel::findDocumentRootIndex(const ModelAPI_Document* theDoc, int aColumn) const
 {
   SessionPtr aSession = ModelAPI_Session::get();
   DocumentPtr aRootDoc = aSession->moduleDocument();
index 5b86c1c0338802ccd92a85e420016d1b66dc3b49..ebbb3f1e04e8bbc4a09d895cbfd2202b08734874 100644 (file)
@@ -159,10 +159,12 @@ void XGUI_DataTree::mousePressEvent(QMouseEvent* theEvent)
   if (theEvent->button() != Qt::MidButton)
     return;
   QModelIndex aInd = indexAt(theEvent->pos());
-  QString aTxt = QString("r=%1 c=%2 p=%3").arg(aInd.row()).arg(aInd.column()).arg((long)aInd.internalPointer());
+  QString aTxt =
+    QString("r=%1 c=%2 p=%3").arg(aInd.row()).arg(aInd.column()).arg((long)aInd.internalPointer());
 
   QModelIndex aPar = aInd.parent();
-  QString aTxt1 = QString("r=%1 c=%2 p=%3").arg(aPar.row()).arg(aPar.column()).arg((long)aPar.internalPointer());
+  QString aTxt1 =
+    QString("r=%1 c=%2 p=%3").arg(aPar.row()).arg(aPar.column()).arg((long)aPar.internalPointer());
   QToolTip::showText(theEvent->globalPos(), aTxt + '\n' + aTxt1);
 }
 #endif
@@ -236,7 +238,8 @@ void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex)
       Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY));
       update(theIndex);
     }
-    // Update list of selected objects because this event happens after selection event in object browser
+    // Update list of selected objects because this event happens after
+    // selection event in object browser
     XGUI_ObjectsBrowser* aObjBrowser = qobject_cast<XGUI_ObjectsBrowser*>(parent());
     if (aObjBrowser) {
       aObjBrowser->onSelectionChanged();