fix another issue with slider (#2533)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user