| 9 | static constexpr int SELECTION_WIDTH = 500; |
| 10 | |
| 11 | PatternRect::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 | |
| 21 | void PatternRect::mousePressEvent(QGraphicsSceneMouseEvent *) |
| 22 | { |
nothing calls this directly
no outgoing calls
no test coverage detected