| 452 | } |
| 453 | |
| 454 | void 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 | |
| 472 | void AnalogSignal::paint_trace(QPainter &p, |
| 473 | const pv::data::AnalogSnapshot *snapshot, |
nothing calls this directly
no test coverage detected