aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/TemplateTitle.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2019-04-18 20:37:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-19 11:50:31 -0800
commitda25b107a5164300ac372a74a66273bb274f95f4 (patch)
tree2b1bff01a21e585fd47d91a6de081e4133d0f27d /mobile-widgets/qml/TemplateTitle.qml
parentbd06ec371c24786e6e628cd7e538355a1cda254f (diff)
downloadsubsurface-da25b107a5164300ac372a74a66273bb274f95f4.tar.gz
mobile-widgets/qml: add TemplateTitle
Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/TemplateTitle.qml')
-rw-r--r--mobile-widgets/qml/TemplateTitle.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/mobile-widgets/qml/TemplateTitle.qml b/mobile-widgets/qml/TemplateTitle.qml
new file mode 100644
index 000000000..fabb482b2
--- /dev/null
+++ b/mobile-widgets/qml/TemplateTitle.qml
@@ -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
+ }
+}
+