fix another issue with slider (#2533)

This commit is contained in:
borgmanJeremy
2022-04-07 10:30:51 -05:00
committed by GitHub
parent 50db18451c
commit e1b55d310f
2 changed files with 3 additions and 1 deletions

View File

@@ -1225,10 +1225,12 @@ void CaptureWidget::handleToolSignal(CaptureTool::Request r)
*/
void CaptureWidget::onToolSizeChanged(int t)
{
m_context.toolSize = t;
CaptureTool* tool = activeButtonTool();
if (tool && tool->showMousePreview()) {
setCursor(Qt::BlankCursor);
tool->onSizeChanged(t);
}
// update tool size of object being drawn

View File

@@ -73,7 +73,7 @@ SidePanelWidget::SidePanelWidget(QPixmap* p, QWidget* parent)
// tool size sigslots
connect(m_toolSizeSlider,
&QSlider::sliderMoved,
&QSlider::valueChanged,
this,
&SidePanelWidget::toolSizeChanged);
connect(this,