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)