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

Method setHighlighted

cp-profiler/src/cpprofiler/analysis/pattern_rect.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void PatternRect::setHighlighted(bool val)
27{
28
29 QPen pen;
30 if (val)
31 {
32 pen.setWidth(3);
33 pen.setBrush(highlighted_outline);
34 }
35 else
36 {
37 // pen.setBrush(normal_outline);
38 pen.setStyle(Qt::NoPen);
39 }
40 setPen(pen);
41}
42
43void PatternRect::addToScene()
44{

Callers 2

resetMethod · 0.45
changeSelectedPatternMethod · 0.45

Calls 1

setWidthMethod · 0.80

Tested by

no test coverage detected