MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / branch

Function branch

cp-profiler/src/cpprofiler/tree/node_drawing.cpp:89–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void branch(QPainter &painter, int x, int y, bool selected)
90{
91
92 using namespace traditional;
93 if (selected)
94 {
95 painter.setBrush(colors::gold);
96 }
97 else
98 {
99 painter.setBrush(colors::blue);
100 }
101
102 painter.drawEllipse(x - HALF_BRANCH_W, y, BRANCH_WIDTH, BRANCH_WIDTH);
103}
104
105void unexplored(QPainter &painter, int x, int y, bool selected)
106{

Callers 2

paintEventMethod · 0.85
processCurrentNodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected