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

Method PatternRect

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

Source from the content-addressed store, hash-verified

9static constexpr int SELECTION_WIDTH = 500;
10
11PatternRect::PatternRect(HistogramScene &hist_scene, int x, int y, int width, int height)
12 : QGraphicsRectItem(x, y - V_DISTANCE / 2, SELECTION_WIDTH, height + V_DISTANCE), visible_rect(x, y, width, height), m_hist_scene(hist_scene)
13{
14 QColor gold(252, 209, 22);
15 setPen(Qt::NoPen);
16
17 QColor patternRectColor(255, 215, 179);
18 visible_rect.setBrush(patternRectColor);
19}
20
21void PatternRect::mousePressEvent(QGraphicsSceneMouseEvent *)
22{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected