draw rounded rectangle using thickness radius instead of drawing simple rectangle
This commit is contained in:
committed by
borgmanJeremy
parent
42f481222a
commit
489769949a
@@ -62,7 +62,7 @@ void RectangleTool::process(QPainter& painter,
|
||||
}
|
||||
painter.setPen(QPen(m_color, m_thickness));
|
||||
painter.setBrush(QBrush(m_color));
|
||||
painter.drawRect(QRect(m_points.first, m_points.second));
|
||||
painter.drawRoundedRect(QRect(m_points.first, m_points.second), m_thickness, m_thickness);
|
||||
}
|
||||
|
||||
void RectangleTool::paintMousePreview(QPainter& painter,
|
||||
|
||||
Reference in New Issue
Block a user