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
+7 -1
View File
@@ -28,10 +28,12 @@ CaptureModification::CaptureModification(
const CaptureButton::ButtonType t,
const QPoint &p,
const QColor &c,
const int thickness,
QObject *parent) :
QObject(parent),
m_color(c),
m_type(t)
m_type(t),
m_thickness(thickness)
{
m_tool = ToolFactory().CreateTool(t, this);
m_coords.append(p);
@@ -56,6 +58,10 @@ CaptureTool* CaptureModification::tool() const{
return m_tool;
}
int CaptureModification::thickness() const {
return m_thickness;
}
// addPoint adds a point to the vector of points
void CaptureModification::addPoint(const QPoint p) {
if (m_tool->toolType() == CaptureTool::TYPE_LINE_DRAWER) {