aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.cpp
AgeCommit message (Collapse)Author
2014-01-16Added the remaining of the ticks to their correct position.Gravatar Tomaz Canabrava
When we prepare the axis to show something on the Profile we need to add the remaining ticks to show on screen, Since this method tries to animately move / remove things before calling this. This has no animations yet - will have in the future. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-16Moves the remaining ticks of the Axis to their correct position on update.Gravatar Tomaz Canabrava
If the size of the Axis changed, this should move them smootly to their place. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-16Remove only the Uneeded Ticks / Labels when a update is requested.Gravatar Tomaz Canabrava
This patch makes the updateTicks method not remove / readd everything when it's triggered, but to only remove the ticks / labels that are no longer needed on the current display. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-01-16Cartesian Axis, based on the Ruler class on the Dive Planner.Gravatar Tomaz Canabrava
This is the same class as the Ruler, but uses the DiveLineItem and DiveTextItem classes created to make it animateable. The next few commits will work on that part. The Ruler was a very bad name for a class that's actually an Axis, that's why I depreceated the later. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>