IntervalBrace.hpp
1 #pragma once
2 #include <QGraphicsItem>
3 #include <qnamespace.h>
4 
5 #include <score_plugin_scenario_export.h>
6 
7 class QGraphicsSceneMouseEvent;
8 
9 namespace Scenario
10 {
11 class IntervalView;
12 
13 class SCORE_PLUGIN_SCENARIO_EXPORT IntervalBrace : public QGraphicsItem
14 {
15 public:
16  IntervalBrace(const IntervalView& parentCstr, QGraphicsItem* parent);
17 
18  QRectF boundingRect() const override;
19 
20  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
21  override;
22 
23  void mousePressEvent(QGraphicsSceneMouseEvent* event) final override;
24  void mouseMoveEvent(QGraphicsSceneMouseEvent* event) final override;
25  void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) final override;
26 
27 protected:
28  const IntervalView& m_parent;
29  QPainterPath m_path;
30 
31 private:
32 };
33 }
Definition: IntervalBrace.hpp:14
Definition: IntervalView.hpp:34
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14