| 
									
										
										
										
											2019-04-18 20:37:44 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							|  |  |  | import QtQuick 2.11 | 
					
						
							|  |  |  | import QtQuick.Controls 2.4 | 
					
						
							|  |  |  | import QtQuick.Layouts 1.11 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Item { | 
					
						
							|  |  |  | 	property alias title: myLabel.text | 
					
						
							|  |  |  | 	width: parent.width | 
					
						
							|  |  |  | 	height: myLabel.height + 1 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	Label { | 
					
						
							|  |  |  | 		id: myLabel | 
					
						
							|  |  |  | 		color: subsurfaceTheme.textColor | 
					
						
							|  |  |  | 		font.pointSize: subsurfaceTheme.titlePointSize | 
					
						
							|  |  |  | 		font.bold: true | 
					
						
							|  |  |  | 		anchors.horizontalCenter: parent.horizontalCenter | 
					
						
							| 
									
										
										
										
											2020-01-24 10:14:26 +01:00
										 |  |  | 		text: "using the TemplateTitle you need to set the title text" | 
					
						
							| 
									
										
										
										
											2019-04-18 20:37:44 +02:00
										 |  |  | 	} | 
					
						
							|  |  |  | 	TemplateLine { | 
					
						
							|  |  |  | 		anchors.top: myLabel.bottom | 
					
						
							|  |  |  | 		anchors.left: parent.left | 
					
						
							|  |  |  | 		anchors.right: parent.right | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 |