subsurface/qt-ui/profile/divelineitem.h
Tomaz Canabrava d47456b4e8 Added a class based on QGraphicsLineItem that can be animated.
This class has animatedHide, animatedMoveTo and QProperty
animations. it's very userful for the future creation of the
Cartesian Axis that will have the ticks 'flowing' around when
it's needed.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-16 10:12:29 +07:00

17 lines
No EOL
395 B
C++

#ifndef DIVELINEITEM_H
#define DIVELINEITEM_H
#include <QObject>
#include <QGraphicsLineItem>
class DiveLineItem : public QObject, public QGraphicsLineItem {
Q_OBJECT
Q_PROPERTY(QPointF pos READ pos WRITE setPos)
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
public:
DiveLineItem(QGraphicsItem *parent = 0);
void animatedHide();
void animateMoveTo(qreal x, qreal y);
};
#endif