Shortcuts for adding/removing plots

This commit is contained in:
Jan Käberich 2023-10-24 14:04:31 +02:00
parent 59f3057dd9
commit ccb71f9650
16 changed files with 397 additions and 71 deletions

View file

@ -214,6 +214,14 @@ void TileWidget::setPlot(TracePlot *plot)
}
}
void TileWidget::removePlot()
{
if(hasContent) {
content->setParentTile(nullptr);
removeContent();
}
}
TileWidget::TileWidget(TraceModel &model, TileWidget &parent)
: TileWidget(model)
{