summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/References/Look/WidgetLayouts/PresetPCALayout.qml
blob: 2b832f4878b892f69569c4e521624b96e655e85e (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
35
36
37
38
39
40
// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import com.ford.hmiframework 1.0

import "../Widgets"

FLayout {
    id: button
    property alias active: presetBtn.selected
    property alias text: presetBtn.text
    property alias touchBtn: presetBtn
    property alias presetText: presetTxt.text


    TouchButtonClimatePCA{
        id: presetBtn
        text: "X"
        image: "buttons/preset_9_9.png"
        imageActive: "buttons/presetSelected.png"
        imagePressed: "buttons/presetPressed_9_9.png"
    }

    BaseText{
        id: presetTxt
        anchors.horizontalCenter: presetBtn.horizontalCenter
        anchors.horizontalCenterOffset: -16
        y:59
        horAlignment: Text.AlignHCenter
        text: "104.3"
        color: "#1d81d5"
    }

    FViewUseCaseSimple{
        condition: presetBtn.active === true
        PropertyChanges {
            target: presetTxt; color: "white"
        }
    }

}