From: vsv Date: Tue, 27 Jun 2017 13:28:08 +0000 (+0300) Subject: Correction according to coding standards X-Git-Tag: V_2.9.0~23^2~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72f21152437f7abaddd5fb3f3ccef481c2b713e4;p=modules%2Fshaper.git Correction according to coding standards --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 196957cc5..9ba1da899 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -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(); diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index 5b86c1c03..ebbb3f1e0 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -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(parent()); if (aObjBrowser) { aObjBrowser->onSelectionChanged();