mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Dive site: remove edit mode from dive location widget
Since no dive site field editing enters edit mode anymore, the whole edit mode state and code can be removed from the widget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									0b851d723e
								
							
						
					
					
						commit
						b5d4d88fe5
					
				
					 10 changed files with 30 additions and 113 deletions
				
			
		|  | @ -12,6 +12,7 @@ | |||
| #include "qt-models/divelocationmodel.h" | ||||
| #include "mainwindow.h" | ||||
| #include "divelistview.h" | ||||
| #include "command.h" | ||||
| 
 | ||||
| static const QUrl urlMapWidget = QUrl(QStringLiteral("qrc:/qml/MapWidget.qml")); | ||||
| static const QUrl urlMapWidgetError = QUrl(QStringLiteral("qrc:/qml/MapWidgetError.qml")); | ||||
|  | @ -49,7 +50,7 @@ void MapWidget::doneLoading(QQuickWidget::Status status) | |||
| 	m_mapHelper = rootObject()->findChild<MapWidgetHelper *>(); | ||||
| 	connect(m_mapHelper, SIGNAL(selectedDivesChanged(QList<int>)), | ||||
| 		this, SLOT(selectedDivesChanged(QList<int>))); | ||||
| 	connect(m_mapHelper, &MapWidgetHelper::coordinatesChanged, this, &MapWidget::coordinatesChangedLocal); | ||||
| 	connect(m_mapHelper, &MapWidgetHelper::coordinatesChanged, this, &MapWidget::coordinatesChanged); | ||||
| } | ||||
| 
 | ||||
| void MapWidget::centerOnSelectedDiveSite() | ||||
|  | @ -112,10 +113,9 @@ void MapWidget::selectedDivesChanged(QList<int> list) | |||
| 	skipReload = false; | ||||
| } | ||||
| 
 | ||||
| void MapWidget::coordinatesChangedLocal(const location_t &location) | ||||
| void MapWidget::coordinatesChanged(struct dive_site *ds, const location_t &location) | ||||
| { | ||||
| 	CHECK_IS_READY_RETURN_VOID(); | ||||
| 	emit coordinatesChanged(location); | ||||
| 	Command::editDiveSiteLocation(ds, location); | ||||
| } | ||||
| 
 | ||||
| void MapWidget::diveSiteChanged(struct dive_site *ds, int field) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue