diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index f6e72ec56..7b24260cd 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -1182,7 +1182,7 @@ QPainterPath VLayoutPiece::MappedLayoutAllowancePath() const } //--------------------------------------------------------------------------------------------------------------------- -void VLayoutPiece::DrawMiniature(QPainter &painter) +void VLayoutPiece::DrawMiniature(QPainter &painter) const { painter.drawPath(ContourPath()); diff --git a/src/libs/vlayout/vlayoutpiece.h b/src/libs/vlayout/vlayoutpiece.h index 96eaaddf3..5012c8392 100644 --- a/src/libs/vlayout/vlayoutpiece.h +++ b/src/libs/vlayout/vlayoutpiece.h @@ -154,7 +154,7 @@ public: QPainterPath ContourPath() const; QPainterPath MappedLayoutAllowancePath() const; - void DrawMiniature(QPainter &painter); + void DrawMiniature(QPainter &painter) const; Q_REQUIRED_RESULT QGraphicsItem *GetItem(bool textAsPaths) const;