mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
Sweep indicator on graphs
This commit is contained in:
parent
1fcf25d060
commit
6f0fb5430d
11 changed files with 370 additions and 55 deletions
|
|
@ -168,6 +168,18 @@ void TracePlot::paintEvent(QPaintEvent *event)
|
|||
traceRemovalPending = false;
|
||||
}
|
||||
|
||||
xSweep = std::numeric_limits<double>::quiet_NaN();
|
||||
for(auto t : traces) {
|
||||
if(!t.second) {
|
||||
continue;
|
||||
}
|
||||
Trace* tr = t.first;
|
||||
if(tr->getSource() == Trace::Source::Live && tr->isVisible() && !tr->isPaused()) {
|
||||
xSweep = model.getSweepPosition();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Q_UNUSED(event)
|
||||
auto& pref = Preferences::getInstance();
|
||||
QPainter p(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue