statistics: don't replot chart when changing features

Up to now, when the user changed the visibility of chart features
(legend, quartiles, labels, etc.) the whole chart was replot.
Instead, only change the visibility status of these items.

After all, this modularity is one of the things the conversion
to QSG was all about.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-01-19 09:54:39 +01:00 committed by bstoeger
parent e32e6d63a7
commit ff536e98fc
5 changed files with 107 additions and 99 deletions

View file

@ -185,7 +185,9 @@ void StatsWidget::var2OperationChanged(int idx)
void StatsWidget::featureChanged(int idx, bool status)
{
state.featureChanged(idx, status);
updateUi();
// No need for a full chart replot - just show/hide the features
if (view)
view->updateFeatures(state);
}
void StatsWidget::showEvent(QShowEvent *e)