summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divetextitem.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 07:03:41 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 07:06:09 -0800
commit980737221d471bb73e50946de40b2b7e303f286b (patch)
treec42c6e20e3a5d0aebba92ad4601e8f902b14eb9f /qt-ui/profile/divetextitem.h
parentcb5ab4bc8e192e65dded3bc3f3bfb703441e5436 (diff)
downloadsubsurface-980737221d471bb73e50946de40b2b7e303f286b.tar.gz
New Profile: make axis labels smaller
Previously all text in the new profile was deawn in the same font. With this change the labels on all axes are smaller. It might be even better to allow per-axis configuration of the label size as along the time axis the bigger size looked better. But especially for partial pressures this looks much better. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetextitem.h')
-rw-r--r--qt-ui/profile/divetextitem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profile/divetextitem.h b/qt-ui/profile/divetextitem.h
index f7a9591ef..e0aa3e9b1 100644
--- a/qt-ui/profile/divetextitem.h
+++ b/qt-ui/profile/divetextitem.h
@@ -15,6 +15,7 @@ public:
DiveTextItem(QGraphicsItem* parent = 0);
void setText(const QString& text);
void setAlignment(int alignFlags);
+ void setScale(double newscale);
void setBrush(const QBrush& brush);
void animatedHide();
void animateMoveTo(qreal x, qreal y);
@@ -27,6 +28,7 @@ private:
QString internalText;
color_indice_t colorIndex;
QBrush brush;
+ double scale;
};
#endif // DIVETEXTITEM_H