Now you can change the thickness of the drawing tools!

This commit is contained in:
lupoDharkael
2017-08-17 14:47:27 +02:00
parent 321ec1b555
commit b966a10c09
40 changed files with 244 additions and 62 deletions

View File

@@ -51,14 +51,15 @@ CaptureTool::ToolWorkType LineTool::toolType() const {
void LineTool::processImage(
QPainter &painter,
const QVector<QPoint> &points,
const QColor &color)
const QColor &color,
const int thickness)
{
QPoint p0 = points[0];
QPoint p1 = points[1];
if (needsAdjustment(p0, p1)) {
p1.setY(p0.y());
}
painter.setPen(QPen(color, 2));
painter.setPen(QPen(color, 2 + thickness));
painter.drawLine(p0, p1);
}