5 #ifndef pqAnimationTrack_h 6 #define pqAnimationTrack_h 12 #include <QGraphicsItem> 16 class pqAnimationKeyFrame;
23 ,
public QGraphicsItem
26 Q_INTERFACES(QGraphicsItem)
30 Q_PROPERTY(QVariant property READ property WRITE setProperty)
32 pqAnimationTrack(QObject* p =
nullptr);
33 ~pqAnimationTrack()
override;
42 pqAnimationKeyFrame* keyFrame(
int);
47 pqAnimationKeyFrame* addKeyFrame();
51 void removeKeyFrame(pqAnimationKeyFrame* frame);
53 bool isDeletable()
const {
return this->Deletable; }
54 void setDeletable(
bool d) { this->Deletable = d; }
56 QVariant property()
const;
58 QRectF boundingRect()
const override;
61 void setProperty(
const QVariant& p);
63 void setBoundingRect(
const QRectF& r);
65 void setEnabled(
bool enable)
67 this->QGraphicsItem::setEnabled(enable);
68 Q_EMIT this->enabledChanged();
72 void propertyChanged();
73 void enabledChanged();
76 void paint(QPainter* p,
const QStyleOptionGraphicsItem* option, QWidget* widget)
override;
79 bool Deletable =
true;
80 QList<pqAnimationKeyFrame*> Frames;
86 #endif // pqAnimationTrack_h #define PARAVIEW_DEPRECATED_IN_5_12_0(reason)
pqTimelineItemDelegate draws timeline in cells and add some associated widgets.