13 ,
public QGraphicsItem
23 using QGraphicsItem::QGraphicsItem;
25 static const constexpr int Type = ItemType::IntervalHeader;
26 int type()
const final override {
return Type; }
28 void setIntervalView(
IntervalView* view) { m_view = view; }
29 IntervalView* intervalView()
const noexcept {
return m_view; }
30 static constexpr double headerHeight() {
return IntervalHeaderHeight; }
32 void setWidth(
double width);
33 virtual void setState(
State s) = 0;
34 State state()
const noexcept {
return m_state; }
36 virtual void on_textChanged() { }
39 void mousePressEvent(QGraphicsSceneMouseEvent* event)
final override;
40 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
final override;
41 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
final override;