mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile/divelist: select dive after swipe
After swiping through the dive list, select the currently visible dive. Thus, the dive is highlighted in the overview pane. The connection with the QMLManager feels atrocious, but I would prefer to have as little logic in QML as possible. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									dd8d8edc45
								
							
						
					
					
						commit
						69516c37ec
					
				
					 3 changed files with 8 additions and 0 deletions
				
			
		|  | @ -313,6 +313,7 @@ Kirigami.Page { | |||
| 			highlightRangeMode: ListView.StrictlyEnforceRange | ||||
| 			onMovementEnded: { | ||||
| 				currentIndex = indexAt(contentX+1, 1); | ||||
| 				manager.selectSwipeRow(currentIndex) | ||||
| 			} | ||||
| 			delegate: Flickable { | ||||
| 				id: internalScrollView | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue