mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	The cylinder-based statistics where not updated when an undo command edited cylinder data. Do so. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			555 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			555 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);
 | 
						|
	void cylinderChanged(dive *d);
 | 
						|
 | 
						|
private:
 | 
						|
	Ui::TabDiveStatistics *ui;
 | 
						|
};
 | 
						|
 | 
						|
#endif
 |