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

Method draw_hover_mark

DSView/pv/view/ruler.cpp:677–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677void Ruler::draw_hover_mark(QPainter &p)
678{
679 const double x = _view.hover_point().x();
680
681 if (x == -1 || _grabbed_marker)
682 return;
683
684 QColor fore(QWidget::palette().color(QWidget::foregroundRole()));
685 p.setPen(fore);
686 p.setBrush(fore);
687
688 const int b = height() - 1;
689 for (int i = 0; i < HoverArrowSize; i++)
690 for (int j = -i; j <= i; j++)
691 p.drawPoint(x-j, b-i);
692}
693
694void Ruler::draw_cursor_sel(QPainter &p)
695{

Callers

nothing calls this directly

Calls 2

heightFunction · 0.85
colorMethod · 0.80

Tested by

no test coverage detected