Code refactoring - Deprecated drawRoundRect->drawRoundedRect
(cherry picked from commit 51079a3940527b59306d1324f86fe7fe0816d96a)
This commit is contained in:
committed by
borgmanJeremy
parent
4c93876b32
commit
a5c68a6f5b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user