diff --git a/src/widgets/capture/capturewidget.cpp b/src/widgets/capture/capturewidget.cpp index 55fb755ab1..8dfbe03eeb 100644 --- a/src/widgets/capture/capturewidget.cpp +++ b/src/widgets/capture/capturewidget.cpp @@ -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 diff --git a/src/widgets/panel/sidepanelwidget.cpp b/src/widgets/panel/sidepanelwidget.cpp index 40dc8e111a..f64736cbf9 100644 --- a/src/widgets/panel/sidepanelwidget.cpp +++ b/src/widgets/panel/sidepanelwidget.cpp @@ -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,