mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-08 07:53:40 +00:00
Preparations for waterfall display
This commit is contained in:
parent
754ded1d08
commit
a7fcaf7d97
12 changed files with 613 additions and 21 deletions
|
|
@ -356,6 +356,11 @@ void TracePlot::createMarkerAtPosition(QPoint p)
|
|||
markerModel->addMarker(marker);
|
||||
}
|
||||
|
||||
bool TracePlot::dropSupported(Trace *t)
|
||||
{
|
||||
return supported(t);
|
||||
}
|
||||
|
||||
void TracePlot::dragEnterEvent(QDragEnterEvent *event)
|
||||
{
|
||||
if (event->mimeData()->hasFormat("trace/pointer")) {
|
||||
|
|
@ -391,6 +396,15 @@ void TracePlot::dragLeaveEvent(QDragLeaveEvent *event)
|
|||
replot();
|
||||
}
|
||||
|
||||
void TracePlot::traceDropped(Trace *t, QPoint position)
|
||||
{
|
||||
Q_UNUSED(t)
|
||||
Q_UNUSED(position);
|
||||
if(supported(t)) {
|
||||
enableTrace(t, true);
|
||||
}
|
||||
}
|
||||
|
||||
std::set<TracePlot *> TracePlot::getPlots()
|
||||
{
|
||||
return plots;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue