Skip to content

Commit 6ef30ce

Browse files
gui: Use drawRoundedRect()
Signed-off-by: Anton Blanchard <[email protected]>
1 parent eff676d commit 6ef30ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gui/src/layoutViewer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,11 @@ class GuiPainter : public Painter
187187
void drawRect(const odb::Rect& rect, int roundX = 0, int roundY = 0) override
188188
{
189189
if (roundX > 0 || roundY > 0)
190-
painter_->drawRoundRect(
190+
painter_->drawRoundedRect(
191191
QRect(rect.xMin(), rect.yMin(), rect.dx(), rect.dy()),
192192
roundX,
193-
roundY);
193+
roundY,
194+
Qt::RelativeSize);
194195
else
195196
painter_->drawRect(QRect(rect.xMin(), rect.yMin(), rect.dx(), rect.dy()));
196197
}

0 commit comments

Comments
 (0)