mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove color parameter of DiveCartesianAxis::updateTicks()
The grid color is saved on construction, no need to pass a parameter. Note that this fixes a bug where the color was passed as animation speed. Ooops. That's what you get from weak typing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
277b9234ab
commit
41c23dcb22
3 changed files with 8 additions and 8 deletions
|
|
@ -51,7 +51,7 @@ public:
|
|||
void setLinesVisible(bool arg1);
|
||||
void setLineSize(qreal lineSize);
|
||||
void setLine(const QLineF& line);
|
||||
virtual void updateTicks(int animSpeed, color_index_t color = TIME_GRID);
|
||||
virtual void updateTicks(int animSpeed);
|
||||
double width() const; // only for vertical axes
|
||||
double height() const; // only for horizontal axes
|
||||
|
||||
|
|
@ -94,7 +94,7 @@ class TimeAxis : public DiveCartesianAxis {
|
|||
Q_OBJECT
|
||||
public:
|
||||
using DiveCartesianAxis::DiveCartesianAxis;
|
||||
void updateTicks(int animSpeed, color_index_t color = TIME_GRID) override;
|
||||
void updateTicks(int animSpeed) override;
|
||||
private:
|
||||
QString textForValue(double value) const override;
|
||||
QColor colorForValue(double value) const override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue