Add sample qml application
[staging/HomeScreen.git] / sample-qml / imports / components / BoxHeading.qml
1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
2  *
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 import QtQuick 2.0
8 import utils 1.0
9
10 Row {
11     id: root
12
13     property color color: Style.blueViv
14     property alias fontSize: headingText.font.pixelSize
15     property alias text: headingText.text
16     property alias boxWidth: box.width
17     property alias boxHeight: box.height
18
19     spacing: 10
20
21     Rectangle {
22         id: box
23         anchors.bottom: headingText.baseline
24         anchors.bottomMargin: 0
25         width: 100
26         height: 16
27         color: root.color
28     }
29
30     Text {
31         id: headingText
32         font.family: "Source Sans Pro"
33         font.pixelSize: 22
34         font.weight: Font.Bold
35         color: root.color
36     }
37 }