Add the dive computer text.

Added the dive computer text on the bottom left side of the new Profile.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-21 10:48:26 -02:00 committed by Dirk Hohndel
parent 63c1a1b3e9
commit caba6500d6
4 changed files with 24 additions and 9 deletions

View file

@ -18,12 +18,13 @@ public:
void setBrush(const QBrush& brush);
void animatedHide();
void animateMoveTo(qreal x, qreal y);
const QString& text();
private:
void updateText();
int internalAlignFlags;
QGraphicsPathItem *textBackgroundItem;
QGraphicsPathItem *textItem;
QString text;
QString internalText;
color_indice_t colorIndex;
QBrush brush;
};