MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / paint_fore

Method paint_fore

DSView/pv/view/analogsignal.cpp:454–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void AnalogSignal::paint_fore(QPainter &p, int left, int right, QColor fore, QColor back)
455{
456 assert(_view);
457
458 fore.setAlpha(View::BackAlpha);
459 QPen pen(fore);
460 pen.setStyle(Qt::DotLine);
461 p.setPen(pen);
462 p.drawLine(left, get_zero_vpos(), right, get_zero_vpos());
463
464 fore.setAlpha(View::ForeAlpha);
465 if(enabled()) {
466 // Paint measure
467 if (_view->session().is_stopped_status())
468 paint_hover_measure(p, fore, back);
469 }
470}
471
472void AnalogSignal::paint_trace(QPainter &p,
473 const pv::data::AnalogSnapshot *snapshot,

Callers

nothing calls this directly

Calls 2

is_stopped_statusMethod · 0.80
sessionMethod · 0.80

Tested by

no test coverage detected