Custom color is always black

This commit is contained in:
Yuriy Puchkov
2021-02-19 18:45:11 +02:00
parent 16fd3b2915
commit 161b2202a6
5 changed files with 6 additions and 30 deletions

View File

@@ -200,7 +200,7 @@ CaptureWidget::~CaptureWidget()
} else {
emit captureFailed(m_id);
}
m_config.setdrawThickness(m_context.thickness);
m_config.setDrawThickness(m_context.thickness);
}
// redefineButtons retrieves the buttons configured to be shown with the
@@ -548,6 +548,7 @@ void CaptureWidget::mouseReleaseEvent(QMouseEvent* e)
m_colorPicker->hide();
m_rightClick = false;
if (!m_context.color.isValid()) {
m_context.color = ConfigHandler().drawColorValue();
m_panel->show();
}
// when we end the drawing we have to register the last point and
@@ -1003,7 +1004,7 @@ void CaptureWidget::decrementCircleCount()
void CaptureWidget::setDrawThickness(const int& t)
{
m_context.thickness = qBound(0, t, 100);
ConfigHandler().setdrawThickness(m_context.thickness);
ConfigHandler().setDrawThickness(m_context.thickness);
emit thicknessChanged(m_context.thickness);
}