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

Method push

qrenderdoc/Windows/TimelineBar.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53{
54public:
55 void push(qreal pos, const int triRadius)
56 {
57 if(ranges.isEmpty())
58 {
59 ranges.push_back({pos, pos});
60 return;
61 }
62
63 QPair<qreal, qreal> &range = ranges.back();
64
65 if(range.second + triRadius >= pos)
66 range.second = pos;
67 else
68 ranges.push_back({pos, pos});
69 }
70
71 QPainterPath makePath(const int triRadius, const int triHeight, qreal y)
72 {

Callers 7

referenceEntityMethod · 0.45
putCharMethod · 0.45
qxmlstream_p.hFile · 0.45
CapturerMethod · 0.45
drawBranchesMethod · 0.45
paintEventMethod · 0.45

Calls 3

isEmptyMethod · 0.45
push_backMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected