Fixing commit for merging. This is a new feature to add a gui button for

chaging the global thickness.
This commit is contained in:
Martin-Eckleben
2020-09-28 21:55:25 +02:00
committed by borgmanJeremy
parent 0401bf08ea
commit 1bf75693dd
14 changed files with 396 additions and 45 deletions

View File

@@ -958,6 +958,26 @@ void CaptureWidget::handleButtonSignal(CaptureTool::Request r)
w->show();
}
break;
case CaptureTool::REQ_INCREASE_TOOL_SIZE:
// increase thickness
m_context.thickness = qBound(0, m_context.thickness + 1, 100);
// show notifier circle
m_notifierBox->showMessage(QString::number(m_context.thickness));
emit thicknessChanged(m_context.thickness);
break;
case CaptureTool::REQ_DECREASE_TOOL_SIZE:
// decrease thickness
m_context.thickness = qBound(0, m_context.thickness - 1, 100);
// show notifier circle
m_notifierBox->showMessage(QString::number(m_context.thickness));
emit thicknessChanged(m_context.thickness);
break;
default:
break;
}