Fixed bug where color in color picker was not updated properly

This commit is contained in:
Jeremy Borgman
2021-03-15 10:10:48 -05:00
committed by borgmanJeremy
parent 9af391b2e9
commit ba461a0c25

View File

@@ -112,7 +112,8 @@ void ColorPicker::mouseMoveEvent(QMouseEvent* e)
{
for (int i = 0; i < m_colorList.size(); ++i) {
if (m_colorAreaList.at(i).contains(e->pos())) {
emit colorSelected(m_colorList.at(i));
m_drawColor = m_colorList.at(i);
emit colorSelected(m_drawColor);
update();
break;
}