mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Desktop: show all selected dive sites on click
When clicking a dive site on the map, the QML code would set the selected dive site, but then all dives of dive sites in the vicinity were set. But still only the clicked-on dive site was shown. Therefore, don't set the list of selected dive sites in QML, but later in DiveListView::selectDives(), where we know all the dives that were selected. This, again, gives nasty entanglement of diverse widgets and models. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									b39f2406c6
								
							
						
					
					
						commit
						488eb15423
					
				
					 8 changed files with 38 additions and 3 deletions
				
			
		|  | @ -84,6 +84,12 @@ bool MapWidget::editMode() const | |||
| 	return isReady && m_mapHelper->editMode(); | ||||
| } | ||||
| 
 | ||||
| void MapWidget::setSelected(const QVector<dive_site *> &divesites) | ||||
| { | ||||
| 	CHECK_IS_READY_RETURN_VOID(); | ||||
| 	m_mapHelper->setSelected(divesites); | ||||
| } | ||||
| 
 | ||||
| void MapWidget::selectionChanged() | ||||
| { | ||||
| 	CHECK_IS_READY_RETURN_VOID(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue