From 0ac5386786733e1246ce49c483ebdf35c3291023 Mon Sep 17 00:00:00 2001 From: jenli669 Date: Sat, 13 Jul 2019 23:59:50 +0200 Subject: [PATCH] refactor(widget): use drawRoundedRect in callconfirmwidget --- src/widget/tool/callconfirmwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/tool/callconfirmwidget.cpp b/src/widget/tool/callconfirmwidget.cpp index 19db6b861..dbcb96fcc 100644 --- a/src/widget/tool/callconfirmwidget.cpp +++ b/src/widget/tool/callconfirmwidget.cpp @@ -148,7 +148,7 @@ void CallConfirmWidget::paintEvent(QPaintEvent*) painter.setBrush(brush); painter.setPen(Qt::NoPen); - painter.drawRoundRect(mainRect, roundedFactor * rectRatio, roundedFactor); + painter.drawRoundedRect(mainRect, roundedFactor * rectRatio, roundedFactor, Qt::RelativeSize); painter.drawPolygon(spikePoly); }