Multiple re-evaluates of the auto-fit when masking multiple cells in the source columns
Steps to reproduce:
- open the project 230104_XRD_sent_to_Labplot_devs.lml
- mask multiple cells in the spreadsheet
- observe long recalculation time which is because of the update in the auto-fit used for the preview
The reason for this are multiple dataChanged() signals, one for every masked cell, and the reaction to this signals XYFitCurve:
In SpreadsheetView::maskSelection() we're supressing the retransforms in the plots already. Adding here column->setSuppressDataChangedSignal(true) with column->setSuppressDataChangedSignal(false) and column->setChanged() afterwards will only partially solve the problem since we'll still have the explicit retransform call in the plot and the additional reaction to the dataChanged() signals.
Reacting and suppressing here to the dataChanged signals in the columns only is not optimal since we still would trigger two retransforms in the plots if the cells are masked in the x- and y-columns and two signals are emitted - with the current logic there is only one retransform.