Loading...
Searching...
No Matches
IntervalBrace.hpp
1#pragma once
2#include <QGraphicsItem>
3#include <qnamespace.h>
4
5#include <score_plugin_scenario_export.h>
6
7class QGraphicsSceneMouseEvent;
8
9namespace Scenario
10{
11class IntervalView;
12
13class SCORE_PLUGIN_SCENARIO_EXPORT IntervalBrace : public QGraphicsItem
14{
15public:
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
27protected:
28 const IntervalView& m_parent;
29 QPainterPath m_path;
30
31private:
32};
33}
Definition IntervalBrace.hpp:14
Definition IntervalView.hpp:34
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13