mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: automatically update dive information tab
Currently, the dive information tab was not updated when the user edited fields. The fields were only updated when switching between dives. Therefore, hook into the "divesChanged" signal and update the fields accordingly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
98a3eb414b
commit
26edea7f71
2 changed files with 55 additions and 13 deletions
|
@ -3,6 +3,7 @@
|
|||
#define TAB_DIVE_INFORMATION_H
|
||||
|
||||
#include "TabBase.h"
|
||||
#include "core/subsurface-qt/DiveListNotifier.h"
|
||||
|
||||
namespace Ui {
|
||||
class TabDiveInformation;
|
||||
|
@ -15,10 +16,12 @@ public:
|
|||
~TabDiveInformation();
|
||||
void updateData() override;
|
||||
void clear() override;
|
||||
|
||||
private slots:
|
||||
void divesChanged(dive_trip *trip, const QVector<dive *> &dives, DiveField field);
|
||||
private:
|
||||
Ui::TabDiveInformation *ui;
|
||||
void updateProfile();
|
||||
void updateWhen();
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue