2 #include <score/graphics/TextItem.hpp>
3 #include <score/graphics/widgets/Constants.hpp>
5 #include <QGraphicsItem>
8 #include <score_lib_base_export.h>
15 ,
public QGraphicsItem
18 SCORE_GRAPHICS_ITEM_TYPE(220)
25 void pressed() E_SIGNAL(SCORE_LIB_BASE_EXPORT, pressed);
26 void dropped(QString filename) E_SIGNAL(SCORE_LIB_BASE_EXPORT, dropped, filename);
29 const QString& text()
const noexcept {
return m_string; }
30 void setText(
const QString& s)
32 m_string = std::move(s);
35 QRectF boundingRect()
const override;
38 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
39 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
40 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
42 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
43 void dragMoveEvent(QGraphicsSceneDragDropEvent* event)
override;
44 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
45 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
48 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsTextButton.hpp:16
Base toolkit upon which the software is built.
Definition: Application.cpp:90