summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetextitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/divetextitem.h')
-rw-r--r--qt-ui/profile/divetextitem.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/qt-ui/profile/divetextitem.h b/qt-ui/profile/divetextitem.h
index e0aa3e9b1..19bf00a73 100644
--- a/qt-ui/profile/divetextitem.h
+++ b/qt-ui/profile/divetextitem.h
@@ -7,19 +7,20 @@
#include <QBrush>
/* A Line Item that has animated-properties. */
-class DiveTextItem :public QObject, public QGraphicsItemGroup{
+class DiveTextItem : public QObject, public QGraphicsItemGroup {
Q_OBJECT
Q_PROPERTY(QPointF pos READ pos WRITE setPos)
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
public:
- DiveTextItem(QGraphicsItem* parent = 0);
- void setText(const QString& text);
+ DiveTextItem(QGraphicsItem *parent = 0);
+ void setText(const QString &text);
void setAlignment(int alignFlags);
void setScale(double newscale);
- void setBrush(const QBrush& brush);
+ void setBrush(const QBrush &brush);
void animatedHide();
void animateMoveTo(qreal x, qreal y);
- const QString& text();
+ const QString &text();
+
private:
void updateText();
int internalAlignFlags;