blob: 983e89edcbcea0c0b003fa4a6d3a1b712684b6e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// 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
text: "using the TemplateTitle you need to set the title text"
}
TemplateLine {
anchors.top: myLabel.bottom
anchors.left: parent.left
anchors.right: parent.right
}
}
|