ArrowDialog.hpp
1 #pragma once
2 #include <QGraphicsItem>
3 #include <QPainterPath>
4 
5 #include <score_lib_base_export.h>
6 
7 #include <vector>
8 
9 namespace score
10 {
11 class SCORE_LIB_BASE_EXPORT ArrowDialog
12  : public QObject
13  , public QGraphicsItem
14 {
15 public:
16  ArrowDialog(QGraphicsScene* parent);
17 
18  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
19  override;
20 
21 private:
22  const QPainterPath& getPath(QSizeF sz);
23 
24  QPainterPath createPath(QSizeF sz);
25  static inline std::vector<std::pair<QSizeF, QPainterPath>> paths;
26 };
27 }
Definition: ArrowDialog.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90