1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "divelineitem.h" #include "animationfunctions.h" #include <QPropertyAnimation> DiveLineItem::DiveLineItem(QGraphicsItem *parent) : QGraphicsLineItem(parent) { } void DiveLineItem::animatedHide() { Animations::hide(this); } void DiveLineItem::animateMoveTo(qreal x, qreal y) { Animations::moveTo(this, x, y); }