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

@@ -31,13 +31,15 @@ public:
CaptureModification(QObject *parent = nullptr) = delete;
CaptureModification(
const CaptureButton::ButtonType,
const QPoint &,
const QColor &,
const QPoint &initialPoint,
const QColor &color,
const int thickness,
QObject *parent = nullptr
);
QColor color() const;
QVector<QPoint> points() const;
CaptureTool* tool() const;
int thickness() const;
CaptureButton::ButtonType buttonType() const;
void addPoint(const QPoint);
@@ -46,6 +48,7 @@ protected:
CaptureButton::ButtonType m_type;
QVector<QPoint> m_coords;
CaptureTool *m_tool;
int m_thickness;
};