diff options
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.cpp')
-rw-r--r-- | qt-ui/profile/divecartesianaxis.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp index 5b7f9cfad..9a3c8242f 100644 --- a/qt-ui/profile/divecartesianaxis.cpp +++ b/qt-ui/profile/divecartesianaxis.cpp @@ -110,7 +110,6 @@ void DiveCartesianAxis::updateTicks() } else { labels[i]->animateMoveTo(m.x1() - tickSize, childPos); } - labels[i]->setVisible( i % 2 ); } // Add's the rest of the needed Ticks / Text. @@ -143,7 +142,6 @@ void DiveCartesianAxis::updateTicks() label->animateMoveTo(m.x1() - tickSize, childPos); } } - label->setVisible( i % 2 ); } } @@ -290,6 +288,16 @@ QString TimeAxis::textForValue(double value) return QString::number(nr); } +void TimeAxis::updateTicks() +{ + DiveCartesianAxis::updateTicks(); + if (maximum() > 600){ + for(int i = 0; i < labels.count(); i++){ + labels[i]->setVisible(i % 2); + } + } +} + QString TemperatureAxis::textForValue(double value) { return QString::number(mkelvin_to_C( (int) value)); |