mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile-widgets/qml: add checkbox values
(planning is excluded, due to not finished UI). Connect all checkboxes with plannerShared. This change allows live testing and compare with the desktop version. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
		
							parent
							
								
									e9301690ce
								
							
						
					
					
						commit
						d83c74606d
					
				
					 1 changed files with 24 additions and 0 deletions
				
			
		|  | @ -299,6 +299,10 @@ Kirigami.ScrollablePage { | ||||||
| 				} | 				} | ||||||
| 				TemplateCheckBox { | 				TemplateCheckBox { | ||||||
| 					text: qsTr("O2 narcotic") | 					text: qsTr("O2 narcotic") | ||||||
|  | 					checked: Planner.o2narcotic | ||||||
|  | 					onClicked: { | ||||||
|  | 						Planner.o2narcotic = checked | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | @ -311,18 +315,38 @@ Kirigami.ScrollablePage { | ||||||
| 
 | 
 | ||||||
| 				TemplateCheckBox { | 				TemplateCheckBox { | ||||||
| 					text: qsTr("Display runtime") | 					text: qsTr("Display runtime") | ||||||
|  | 					checked: Planner.display_runtime | ||||||
|  | 					onClicked: { | ||||||
|  | 						Planner.display_runtime = checked | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 				TemplateCheckBox { | 				TemplateCheckBox { | ||||||
| 					text: qsTr("Display segment duration") | 					text: qsTr("Display segment duration") | ||||||
|  | 					checked: Planner.display_duration | ||||||
|  | 					onClicked: { | ||||||
|  | 						Planner.display_duration = checked | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 				TemplateCheckBox { | 				TemplateCheckBox { | ||||||
| 					text: qsTr("Display transitions in deco") | 					text: qsTr("Display transitions in deco") | ||||||
|  | 					checked: Planner.display_transitions | ||||||
|  | 					onClicked: { | ||||||
|  | 						Planner.display_transitions = checked | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 				TemplateCheckBox { | 				TemplateCheckBox { | ||||||
| 					text: qsTr("Verbatim dive plan") | 					text: qsTr("Verbatim dive plan") | ||||||
|  | 					checked: Planner.verbatim_plan | ||||||
|  | 					onClicked: { | ||||||
|  | 						Planner.verbatim_plan = checked | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 				TemplateCheckBox { | 				TemplateCheckBox { | ||||||
| 					text: qsTr("Display plan variations") | 					text: qsTr("Display plan variations") | ||||||
|  | 					checked: Planner.display_variations | ||||||
|  | 					onClicked: { | ||||||
|  | 						Planner.display_variations = checked | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue