mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 06:54:17 +01:00
plots: Add plot names
This commit is contained in:
@@ -66,8 +66,9 @@ void PlotView::contextMenuEvent(QContextMenuEvent * event)
|
||||
auto src = selectedPlot->output();
|
||||
auto compatiblePlots = as_range(Plots::plots.equal_range(src->sampleType()));
|
||||
for (auto p : compatiblePlots) {
|
||||
auto action = new QAction("Add plot", &menu);
|
||||
auto plotCreator = p.second;
|
||||
auto plotInfo = p.second;
|
||||
auto action = new QAction(QString("Add %1").arg(plotInfo.name), &menu);
|
||||
auto plotCreator = plotInfo.creator;
|
||||
connect(
|
||||
action, &QAction::triggered,
|
||||
this, [=]() {
|
||||
|
||||
Reference in New Issue
Block a user