Skip to content

Commit

Permalink
fix another issue with slider (flameshot-org#2533)
Browse files Browse the repository at this point in the history
  • Loading branch information
borgmanJeremy authored Apr 7, 2022
1 parent 50db184 commit e1b55d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/widgets/capture/capturewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/panel/sidepanelwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e1b55d3

Please sign in to comment.