summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.cpp
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/divecartesianaxis.cpp
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/divecartesianaxis.cpp')
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp
index 6eb732139..70be86334 100644
--- a/qt-ui/profile/divecartesianaxis.cpp
+++ b/qt-ui/profile/divecartesianaxis.cpp
@@ -164,6 +164,7 @@ void DiveCartesianAxis::updateTicks()
label->setText(textForValue(currValue));
label->setBrush(QBrush(textColor));
label->setBrush(colorForValue(currValue));
+ label->setScale(0.8);
labels.push_back(label);
if (orientation == RightToLeft || orientation == LeftToRight) {
label->setAlignment(Qt::AlignBottom | Qt::AlignHCenter);