Renamed some private vars to follow coding guidelines

This commit is contained in:
Alessandro Pasotti 2017-12-18 18:59:30 +01:00
parent 4302910f94
commit 4dc5b5698a
4 changed files with 6 additions and 4 deletions

View File

@ -31,7 +31,7 @@ void QgsLayoutNodesItem::setNodes( const QPolygonF &nodes )
QRectF QgsLayoutNodesItem::boundingRect() const
{
return currentRectangle;
return mCurrentRectangle;
}
double QgsLayoutNodesItem::estimatedFrameBleed() const
@ -336,7 +336,7 @@ void QgsLayoutNodesItem::updateBoundingRect()
{
QRectF br = rect();
br.adjust( -mMaxSymbolBleed, -mMaxSymbolBleed, mMaxSymbolBleed, mMaxSymbolBleed );
currentRectangle = br;
mCurrentRectangle = br;
// update
prepareGeometryChange();

View File

@ -165,7 +165,7 @@ class CORE_EXPORT QgsLayoutNodesItem: public QgsLayoutItem
void updateSceneRect();
//! Current bounding rectangle of shape
QRectF currentRectangle;
QRectF mCurrentRectangle;
protected slots:

View File

@ -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();

View File

@ -261,6 +261,8 @@ class CORE_EXPORT QgsLayoutItemPolyline: public QgsLayoutNodesItem
double computeMarkerMargin() const;
friend class TestQgsLayoutPolyline;
friend class QgsCompositionConverter;
};
#endif // QGSLAYOUTITEMPOLYLINE_H