mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: remove last dc_number access from profile code
dc_number is a global variable indicating the currently displayed dive on desktop. It makes no sense on mobile, since multiple profiles can be active at the same time. Therefore, the profile code should not access this global, but use the dc number that is passed in. This removes the last access. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
96e825fb2e
commit
ada4632ff1
3 changed files with 5 additions and 8 deletions
|
|
@ -8,13 +8,14 @@
|
|||
#include <QBrush>
|
||||
|
||||
struct dive;
|
||||
struct divecomputer;
|
||||
class DiveCartesianAxis;
|
||||
|
||||
class TankItem : public QGraphicsRectItem
|
||||
{
|
||||
public:
|
||||
explicit TankItem(const DiveCartesianAxis &axis, double dpr);
|
||||
void setData(const struct dive *d, int plotStartTime, int plotEndTime);
|
||||
void setData(const struct dive *d, const struct divecomputer *dc, int plotStartTime, int plotEndTime);
|
||||
double height() const;
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue