fix deprecated warning QPainter::drawRoundRect

Use
QPainter::drawRoundedRect
instead.

This function was introduced in Qt 4.4.
This commit is contained in:
Simon De Backer
2020-06-01 22:52:15 +02:00
committed by Laurent Trinques
parent 74c3fc8dd9
commit de88b32e5b
3 changed files with 4 additions and 4 deletions

View File

@@ -447,7 +447,7 @@ void ElementTextItemGroup::paint(QPainter *painter, const QStyleOptionGraphicsIt
t.setStyle(Qt::DashDotLine);
t.setCosmetic(true);
painter->setPen(t);
painter->drawRoundRect(boundingRect().adjusted(1, 1, -1, -1), 10, 10);
painter->drawRoundedRect(boundingRect().adjusted(1, 1, -1, -1), 10, 10);
painter->restore();
}