校正线段删除后,置为null并刷新

This commit is contained in:
jiayulong 2026-04-29 15:20:23 +08:00
parent 8f59098bb2
commit adc2be3afd

View File

@ -4888,7 +4888,9 @@ void QMyCustomPlot::s_DelSelectShiftLineFromPlot(QString strUuid, QString strSlf
{ {
TransparentDraggableLine *pDraggableLine = (TransparentDraggableLine *)m_SelectShiftLine; TransparentDraggableLine *pDraggableLine = (TransparentDraggableLine *)m_SelectShiftLine;
pDraggableLine->deleteRect(); pDraggableLine->deleteRect();
m_SelectShiftLine = nullptr;
} }
replot();
} }
//清除全部分段线 //清除全部分段线
@ -4914,7 +4916,9 @@ void QMyCustomPlot::s_DelAllShiftLineFromPlot(QString strUuid, QString strSlfNam
pDraggableLine = (TransparentDraggableLine*)it.value(); pDraggableLine = (TransparentDraggableLine*)it.value();
it++; it++;
pDraggableLine->deleteRect(); pDraggableLine->deleteRect();
m_SelectShiftLine = nullptr;
} }
this->replot();
} }
//执行校正 //执行校正