Fixing commit for merging. This is a new feature to add a gui button for
chaging the global thickness.
This commit is contained in:
committed by
borgmanJeremy
parent
0401bf08ea
commit
1bf75693dd
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user