| 
									
										
										
										
											2016-02-10 22:53:59 +02:00
										 |  |  | import QtQuick 2.3 | 
					
						
							|  |  |  | import QtQuick.Controls 1.2 | 
					
						
							|  |  |  | import QtQuick.Layouts 1.1 | 
					
						
							|  |  |  | import org.kde.plasma.mobilecomponents 0.2 as MobileComponents | 
					
						
							|  |  |  | import org.subsurfacedivelog.mobile 1.0 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-11 05:32:37 -08:00
										 |  |  | MobileComponents.Page { | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 	id: aboutPage | 
					
						
							| 
									
										
										
										
											2016-03-24 09:44:05 -07:00
										 |  |  | 	property int pageWidth: subsurfaceTheme.columnWidth - MobileComponents.Units.smallSpacing | 
					
						
							| 
									
										
										
										
											2016-02-10 22:53:59 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 	ScrollView { | 
					
						
							|  |  |  | 		anchors.fill: parent | 
					
						
							| 
									
										
										
										
											2016-02-10 22:53:59 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 		ColumnLayout { | 
					
						
							|  |  |  | 			spacing: MobileComponents.Units.largeSpacing | 
					
						
							|  |  |  | 			width: aboutPage.width | 
					
						
							|  |  |  | 			Layout.margins: MobileComponents.Units.gridUnit / 2 | 
					
						
							| 
									
										
										
										
											2016-02-10 22:53:59 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 			MobileComponents.Heading { | 
					
						
							|  |  |  | 				text: "About Subsurface-mobile" | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignHCenter | 
					
						
							|  |  |  | 				Layout.maximumWidth: pageWidth | 
					
						
							| 
									
										
										
										
											2016-03-24 09:44:05 -07:00
										 |  |  | 				Layout.topMargin: MobileComponents.Units.gridUnit | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 				wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2016-03-24 09:44:05 -07:00
										 |  |  | 			Image { | 
					
						
							|  |  |  | 				id: image | 
					
						
							|  |  |  | 				source: "qrc:/qml/subsurface-mobile-icon.png" | 
					
						
							|  |  |  | 				width: pageWidth / 2 | 
					
						
							|  |  |  | 				height: width | 
					
						
							|  |  |  | 				fillMode: Image.Stretch | 
					
						
							|  |  |  | 				Layout.alignment: Qt.AlignCenter | 
					
						
							|  |  |  | 				horizontalAlignment: Image.AlignHCenter | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 			} | 
					
						
							|  |  |  | 			MobileComponents.Heading { | 
					
						
							|  |  |  | 				text: "A mobile version of the free Subsurface divelog software.\n" + | 
					
						
							|  |  |  | 				      "View your dive logs while on the go." | 
					
						
							| 
									
										
										
										
											2016-03-05 12:53:13 -08:00
										 |  |  | 				level: 4 | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 				Layout.alignment: Qt.AlignHCenter | 
					
						
							|  |  |  | 				Layout.topMargin: MobileComponents.Units.largeSpacing * 3 | 
					
						
							|  |  |  | 				Layout.maximumWidth: pageWidth | 
					
						
							|  |  |  | 				wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere | 
					
						
							|  |  |  | 				anchors.horizontalCenter: parent.Center | 
					
						
							|  |  |  | 				horizontalAlignment: Text.AlignHCenter | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2016-02-10 22:53:59 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 			MobileComponents.Heading { | 
					
						
							| 
									
										
										
										
											2016-03-05 12:53:13 -08:00
										 |  |  | 				text: "Version: " + manager.getVersion() + "\n\n© Subsurface developer team\n2011-2016" | 
					
						
							|  |  |  | 				level: 5 | 
					
						
							|  |  |  | 				font.pointSize: subsurfaceTheme.smallPointSize + 1 | 
					
						
							| 
									
										
										
										
											2016-02-11 06:16:10 -08:00
										 |  |  | 				Layout.alignment: Qt.AlignHCenter | 
					
						
							|  |  |  | 				Layout.topMargin: MobileComponents.Units.largeSpacing | 
					
						
							|  |  |  | 				Layout.maximumWidth: pageWidth | 
					
						
							|  |  |  | 				wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere | 
					
						
							|  |  |  | 				anchors.horizontalCenter: parent.Center | 
					
						
							|  |  |  | 				horizontalAlignment: Text.AlignHCenter | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							| 
									
										
										
										
											2016-02-10 22:53:59 +02:00
										 |  |  | 	} | 
					
						
							|  |  |  | } |