Skip to content

Commit

Permalink
Renamed some private vars to follow coding guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 9, 2018
1 parent 4302910 commit 4dc5b56
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/layout/qgslayoutitemnodeitem.cpp
Expand Up @@ -31,7 +31,7 @@ void QgsLayoutNodesItem::setNodes( const QPolygonF &nodes )

QRectF QgsLayoutNodesItem::boundingRect() const
{
return currentRectangle;
return mCurrentRectangle;
}

double QgsLayoutNodesItem::estimatedFrameBleed() const
Expand Down Expand Up @@ -336,7 +336,7 @@ void QgsLayoutNodesItem::updateBoundingRect()
{
QRectF br = rect();
br.adjust( -mMaxSymbolBleed, -mMaxSymbolBleed, mMaxSymbolBleed, mMaxSymbolBleed );
currentRectangle = br;
mCurrentRectangle = br;

// update
prepareGeometryChange();
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemnodeitem.h
Expand Up @@ -165,7 +165,7 @@ class CORE_EXPORT QgsLayoutNodesItem: public QgsLayoutItem
void updateSceneRect();

//! Current bounding rectangle of shape
QRectF currentRectangle;
QRectF mCurrentRectangle;

protected slots:

Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitempolyline.cpp
Expand Up @@ -420,7 +420,7 @@ void QgsLayoutItemPolyline::updateBoundingRect()

double margin = std::max( mMaxSymbolBleed, computeMarkerMargin() );
br.adjust( -margin, -margin, margin, margin );
currentRectangle = br;
mCurrentRectangle = br;

// update
prepareGeometryChange();
Expand Down
2 changes: 2 additions & 0 deletions src/core/layout/qgslayoutitempolyline.h
Expand Up @@ -261,6 +261,8 @@ class CORE_EXPORT QgsLayoutItemPolyline: public QgsLayoutNodesItem
double computeMarkerMargin() const;

friend class TestQgsLayoutPolyline;
friend class QgsCompositionConverter;

};

#endif // QGSLAYOUTITEMPOLYLINE_H
Expand Down

0 comments on commit 4dc5b56

Please sign in to comment.