Automatically adjust domain of graph to dropped trace

This commit is contained in:
Jan Käberich 2021-02-22 13:39:47 +01:00
parent 20b0b336bb
commit f6cc46781e
7 changed files with 43 additions and 4 deletions

View file

@ -213,7 +213,7 @@ void TracePlot::dragEnterEvent(QDragEnterEvent *event)
quintptr dropPtr;
stream >> dropPtr;
auto trace = (Trace*) dropPtr;
if(supported(trace)) {
if(dropSupported(trace)) {
event->acceptProposedAction();
dropPending = true;
dropTrace = trace;