mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	QML UI: show dive number and date in the detail view
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									16c6ff0089
								
							
						
					
					
						commit
						4b29cc21fb
					
				
					 2 changed files with 11 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -18,6 +18,8 @@ Item {
 | 
			
		|||
	property string buddy
 | 
			
		||||
	property string divemaster;
 | 
			
		||||
	property string notes;
 | 
			
		||||
	property string date
 | 
			
		||||
	property string number
 | 
			
		||||
 | 
			
		||||
	onDive_idChanged: {
 | 
			
		||||
		qmlProfile.diveId = dive_id
 | 
			
		||||
| 
						 | 
				
			
			@ -78,11 +80,16 @@ Item {
 | 
			
		|||
				id: editorDetails
 | 
			
		||||
				width: parent.width
 | 
			
		||||
				columns: 2
 | 
			
		||||
				Text { }
 | 
			
		||||
				Text {
 | 
			
		||||
					Layout.columnSpan: 2
 | 
			
		||||
					Layout.alignment: Qt.AlignHCenter
 | 
			
		||||
					text: "Dive " + number + " (" + date + ")"; font.bold: true
 | 
			
		||||
				}
 | 
			
		||||
				QMLProfile {
 | 
			
		||||
					Layout.columnSpan: 2
 | 
			
		||||
					Layout.fillWidth: true
 | 
			
		||||
					id: qmlProfile
 | 
			
		||||
					height: 500
 | 
			
		||||
					Layout.fillWidth: true
 | 
			
		||||
				}
 | 
			
		||||
				Text { text: "Location:"; font.bold: true }
 | 
			
		||||
				TextField { id: txtLocation; text: location; Layout.fillWidth: true }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -40,6 +40,8 @@ Rectangle {
 | 
			
		|||
					detailsWindow.watertemp = watertemp
 | 
			
		||||
					detailsWindow.divemaster = divemaster
 | 
			
		||||
					detailsWindow.notes = notes
 | 
			
		||||
					detailsWindow.number = diveNumber
 | 
			
		||||
					detailsWindow.date = date
 | 
			
		||||
					stackView.push(detailsWindow)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue