MCPcopy Create free account
hub / github.com/baldurk/renderdoc / drawLine

Method drawLine

qrenderdoc/Windows/TimelineBar.cpp:902–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900}
901
902void TimelineBar::drawLine(QStylePainter &p, QPointF start, QPointF end)
903{
904 if(start.x() == end.x() || start.y() == end.y())
905 {
906 QStyleOptionFrame opt;
907 opt.initFrom(viewport());
908 opt.rect = QRectF(start, end).toRect();
909 opt.frameShape = (start.y() == end.y() ? QFrame::HLine : QFrame::VLine);
910 p.drawControl(QStyle::CE_ShapedFrame, opt);
911 }
912 else
913 {
914 p.drawLine(start, end);
915 }
916}
917
918void TimelineBar::paintMarkers(QPainter &p, const QVector<Marker> &markers,
919 const QVector<uint32_t> &actions, QRectF markerRect)

Callers 12

RichResourceTextPaintFunction · 0.45
MakeSwatchIconFunction · 0.45
drawArrowMethod · 0.45
paintEventMethod · 0.45
paintEventMethod · 0.45
drawRowMethod · 0.45
drawBranchesMethod · 0.45
drawComplexControlMethod · 0.45
drawPrimitiveMethod · 0.45
drawComplexControlMethod · 0.45
drawPrimitiveMethod · 0.45
drawControlMethod · 0.45

Calls 4

QRectFClass · 0.50
xMethod · 0.45
yMethod · 0.45
drawControlMethod · 0.45

Tested by

no test coverage detected