mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	DiveObjectHelper: add dive_site_uuid()
The map widget on the mobile version requires that a dive object from a model has a dive_site uuid. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
		
							parent
							
								
									eac7c4bdae
								
							
						
					
					
						commit
						2317fed9b6
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -122,6 +122,11 @@ QString DiveObjectHelper::gps_decimal() const | |||
| 	return val; | ||||
| } | ||||
| 
 | ||||
| QVariant DiveObjectHelper::dive_site_uuid() const | ||||
| { | ||||
| 	return QVariant::fromValue(m_dive->dive_site_uuid); | ||||
| } | ||||
| 
 | ||||
| QString DiveObjectHelper::duration() const | ||||
| { | ||||
| 	return get_dive_duration_string(m_dive->duration.seconds, QObject::tr("h"), QObject::tr("min")); | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ class DiveObjectHelper : public QObject { | |||
| 	Q_PROPERTY(QString location READ location CONSTANT) | ||||
| 	Q_PROPERTY(QString gps READ gps CONSTANT) | ||||
| 	Q_PROPERTY(QString gps_decimal READ gps_decimal CONSTANT) | ||||
| 	Q_PROPERTY(QVariant dive_site_uuid READ dive_site_uuid CONSTANT) | ||||
| 	Q_PROPERTY(QString duration READ duration CONSTANT) | ||||
| 	Q_PROPERTY(bool noDive READ noDive CONSTANT) | ||||
| 	Q_PROPERTY(QString depth READ depth CONSTANT) | ||||
|  | @ -60,6 +61,7 @@ public: | |||
| 	QString location() const; | ||||
| 	QString gps() const; | ||||
| 	QString gps_decimal() const; | ||||
| 	QVariant dive_site_uuid() const; | ||||
| 	QString duration() const; | ||||
| 	bool noDive() const; | ||||
| 	QString depth() const; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue