mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
selection: remove current_dive and dc_number access from tabwidgets
An attempt at limitting accesses to the globals current_dive and dc_number. These globals do not make sense on mobile. The parent widget of the tab-widgets remembers the currently displayer dive and dive computer and the individual widgets access these values from there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8cd191c271
commit
6f03fc9689
8 changed files with 125 additions and 96 deletions
|
@ -21,7 +21,11 @@ public:
|
|||
void clearTabs();
|
||||
void nextInputField(QKeyEvent *event);
|
||||
void stealFocus();
|
||||
bool includesCurrentDive(const QVector<dive *> &dives) const;
|
||||
divecomputer *getCurrentDC() const;
|
||||
|
||||
dive *currentDive;
|
||||
int currentDC;
|
||||
public
|
||||
slots:
|
||||
// Always called with non-null currentDive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue