summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Weather.qml
blob: 0bcaf772053e647e2debace099e3107d6060ff3d (plain)
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
27
28
29
30
31
32
33
34
import QtQuick 2.0

Item {
    property alias text: text.text
    property alias temp: temp.text
    property alias image: image.source

    width: 150
    height: 75

    Text {
        id: text
        text: "Today"
        anchors.top: parent.top
        color: "#ffffff"
        anchors.horizontalCenter: parent.horizontalCenter
    }

    Text {
        id: temp
        text: "72"
        font.pixelSize: 36
        anchors.bottom: parent.bottom
        anchors.right: parent.right
        color: "#ffffff"
    }

    Image {
        id: image
        source: "../Assets/Cloud.png"
        anchors.left: parent.left
        anchors.bottom: parent.bottom
    }
}