diff --git a/sources/qetgraphicsitem/diagramtextitem.cpp b/sources/qetgraphicsitem/diagramtextitem.cpp index a821b0d6c..64519235e 100644 --- a/sources/qetgraphicsitem/diagramtextitem.cpp +++ b/sources/qetgraphicsitem/diagramtextitem.cpp @@ -253,7 +253,7 @@ void DiagramTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *o t.setStyle(Qt::DashDotLine); t.setCosmetic(true); painter -> setPen(t); - painter -> drawRoundRect(boundingRect(), 10, 10); + painter -> drawRoundedRect(boundingRect(), 10, 10); painter -> restore(); } diff --git a/sources/qetgraphicsitem/element.cpp b/sources/qetgraphicsitem/element.cpp index decd4d468..2eec4f07f 100644 --- a/sources/qetgraphicsitem/element.cpp +++ b/sources/qetgraphicsitem/element.cpp @@ -303,7 +303,7 @@ void Element::drawSelection(QPainter *painter, const QStyleOptionGraphicsItem *o t.setCosmetic(true); painter -> setPen(t); // Le dessin se fait a partir du rectangle delimitant - painter -> drawRoundRect(boundingRect().adjusted(1, 1, -1, -1), 10, 10); + painter -> drawRoundedRect(boundingRect().adjusted(1, 1, -1, -1), 10, 10); painter -> restore(); } @@ -329,7 +329,7 @@ void Element::drawHighlight(QPainter *painter, const QStyleOptionGraphicsItem *o painter -> setPen(Qt::NoPen); painter -> setBrush(brush); // Le dessin se fait a partir du rectangle delimitant - painter -> drawRoundRect(boundingRect().adjusted(1, 1, -1, -1), 10, 10); + painter -> drawRoundedRect(boundingRect().adjusted(1, 1, -1, -1), 10, 10); painter -> restore(); } diff --git a/sources/qetgraphicsitem/elementtextitemgroup.cpp b/sources/qetgraphicsitem/elementtextitemgroup.cpp index 468ab2a37..1471639d6 100644 --- a/sources/qetgraphicsitem/elementtextitemgroup.cpp +++ b/sources/qetgraphicsitem/elementtextitemgroup.cpp @@ -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(); }