mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets/qml: add TemplateTitle
Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bd06ec371c
commit
da25b107a5
2 changed files with 27 additions and 0 deletions
26
mobile-widgets/qml/TemplateTitle.qml
Normal file
26
mobile-widgets/qml/TemplateTitle.qml
Normal file
|
@ -0,0 +1,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 TemplateTilte you need to set the title text"
|
||||
}
|
||||
TemplateLine {
|
||||
anchors.top: myLabel.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
}
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
<file>TemplateSection.qml</file>
|
||||
<file>TemplateSpinBox.qml</file>
|
||||
<file>TemplateTextField.qml</file>
|
||||
<file>TemplateTitle.qml</file>
|
||||
|
||||
<!-- ********** qml ********** -->
|
||||
<file>About.qml</file>
|
||||
|
|
Loading…
Add table
Reference in a new issue