diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-10 21:57:51 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2019-07-12 09:59:28 +0200 |
commit | 74244b3cfebb08d60fd32e938b396e8fa90a4774 (patch) | |
tree | 6dd3f26c4c9c40a6a77470addb5ebaaa5c9a7b1c /profile-widget/diveeventitem.h | |
parent | 5886550434e2c2e3c77880a4ee08f9d192d6984a (diff) | |
download | subsurface-74244b3cfebb08d60fd32e938b396e8fa90a4774.tar.gz |
Profile: take int instead of bool in DiveEventItem::recalculatePos
The goal here is to slowly make animation speed a variable of the
profile widget, not of the global preferences. Currently the code
does some trickeries with setting / unsetting the global animation
speed.
Start by not taking a bool "instant" but a speed in
DiveEventItem::recalculatePos().
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/diveeventitem.h')
-rw-r--r-- | profile-widget/diveeventitem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/diveeventitem.h b/profile-widget/diveeventitem.h index 2039da616..0c065e131 100644 --- a/profile-widget/diveeventitem.h +++ b/profile-widget/diveeventitem.h @@ -16,13 +16,13 @@ public: void setEvent(struct event *ev, struct gasmix lastgasmix); struct event *getEvent(); void eventVisibilityChanged(const QString &eventName, bool visible); - void setVerticalAxis(DiveCartesianAxis *axis); + void setVerticalAxis(DiveCartesianAxis *axis, int speed); void setHorizontalAxis(DiveCartesianAxis *axis); void setModel(DivePlotDataModel *model); bool shouldBeHidden(); public slots: - void recalculatePos(bool instant = false); + void recalculatePos(int animationSpeed); private: void setupToolTipString(struct gasmix lastgasmix); |