MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / paint_fore

Method paint_fore

DSView/pv/view/mathtrace.cpp:251–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void MathTrace::paint_fore(QPainter &p, int left, int right, QColor fore, QColor back)
252{
253 if (!_show)
254 return;
255
256 assert(_view);
257
258 fore.setAlpha(View::BackAlpha);
259 QPen pen(fore);
260 pen.setStyle(Qt::DotLine);
261 p.setPen(pen);
262 p.drawLine(left, get_zero_vpos(), right, get_zero_vpos());
263
264 // Paint measure
265 fore.setAlpha(View::ForeAlpha);
266 if (_view->session().is_stopped_status())
267 paint_hover_measure(p, fore, back);
268}
269
270void MathTrace::paint_trace(QPainter &p,
271 int zeroY, int left, const int64_t start, const int64_t end,

Callers

nothing calls this directly

Calls 2

is_stopped_statusMethod · 0.80
sessionMethod · 0.80

Tested by

no test coverage detected