Code refactoring - Deprecated drawRoundRect->drawRoundedRect

(cherry picked from commit 51079a3940527b59306d1324f86fe7fe0816d96a)
This commit is contained in:
Yuriy Puchkov
2021-02-22 17:26:04 +02:00
committed by borgmanJeremy
parent 4c93876b32
commit a5c68a6f5b

View File

@@ -78,7 +78,7 @@ void ColorPicker::paintEvent(QPaintEvent*)
if (m_colorList.at(i).isValid()) {
// draw preset color
painter.setBrush(QColor(m_colorList.at(i)));
painter.drawRoundRect(rects.at(i), 100, 100);
painter.drawRoundedRect(rects.at(i), 100, 100);
} else {
// draw rainbow (part) for custom color
QRect lastRect = rects.at(i);
@@ -95,7 +95,7 @@ void ColorPicker::paintEvent(QPaintEvent*)
// set color and draw circle
painter.setPen(color);
painter.setBrush(color);
painter.drawRoundRect(lastRect, 100, 100);
painter.drawRoundedRect(lastRect, 100, 100);
// set next color, circle geometry
h += fHStep;