mirror of
https://github.com/flameshot-org/flameshot.git
synced 2026-12-06 16:01:00 +00:00
Now you can change the thickness of the drawing tools!
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user