mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 14:10:19 +00:00
5c4d163a41
On undo/redo, the dive statistics tab was not updated even if a selected dive was changed. Fix that. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
27 lines
523 B
C++
27 lines
523 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef TAB_DIVE_STATISTICS_H
|
|
#define TAB_DIVE_STATISTICS_H
|
|
|
|
#include "TabBase.h"
|
|
#include "core/subsurface-qt/DiveListNotifier.h"
|
|
|
|
namespace Ui {
|
|
class TabDiveStatistics;
|
|
};
|
|
|
|
class TabDiveStatistics : public TabBase {
|
|
Q_OBJECT
|
|
public:
|
|
TabDiveStatistics(QWidget *parent = 0);
|
|
~TabDiveStatistics();
|
|
void updateData() override;
|
|
void clear() override;
|
|
|
|
private slots:
|
|
void divesChanged(const QVector<dive *> &dives, DiveField field);
|
|
|
|
private:
|
|
Ui::TabDiveStatistics *ui;
|
|
};
|
|
|
|
#endif
|