MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / drawDashedLine

Method drawDashedLine

src/openms_gui/source/VISUAL/PainterBase.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void PainterBase::drawDashedLine(const QPoint& from, const QPoint& to, QPainter* painter, const QColor& color)
34 {
35 QPen pen;
36 QVector<qreal> dashes;
37 dashes << 5 << 5 << 1 << 5;
38 pen.setDashPattern(dashes);
39 pen.setColor(color);
40 painter->save();
41 painter->setPen(pen);
42 painter->drawLine(from, to);
43 painter->restore();
44 }
45
46 void PainterBase::drawCross(const QPoint& pos, QPainter* painter, const int size)
47 {

Callers

nothing calls this directly

Calls 1

setColorMethod · 0.45

Tested by

no test coverage detected