mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	profile: remove DepthAxis constructor specialization
All this did was setting changed to true. Obviously an artifact, since that is done in the constructor of the base class anyway. Remove. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									89d9105209
								
							
						
					
					
						commit
						4b9177c098
					
				
					 2 changed files with 1 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -360,13 +360,6 @@ QColor DepthAxis::colorForValue(double) const
 | 
			
		|||
	return QColor(Qt::red);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DepthAxis::DepthAxis(Position position, color_index_t gridColor, double dpr,
 | 
			
		||||
		     bool printMode, bool isGrayscale, ProfileScene &scene) :
 | 
			
		||||
	DiveCartesianAxis(position, gridColor, dpr, printMode, isGrayscale, scene)
 | 
			
		||||
{
 | 
			
		||||
	changed = true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QColor TimeAxis::colorForValue(double) const
 | 
			
		||||
{
 | 
			
		||||
	return QColor(Qt::blue);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -80,8 +80,7 @@ protected:
 | 
			
		|||
class DepthAxis : public DiveCartesianAxis {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
public:
 | 
			
		||||
	DepthAxis(Position position, color_index_t gridColor, double dpr,
 | 
			
		||||
		  bool printMode, bool isGrayscale, ProfileScene &scene);
 | 
			
		||||
	using DiveCartesianAxis::DiveCartesianAxis;
 | 
			
		||||
private:
 | 
			
		||||
	QString textForValue(double value) const override;
 | 
			
		||||
	QColor colorForValue(double value) const override;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue