summaryrefstree
path: root/usr/bin/qmldashboard/Radio/RadioTest.qml
blob: f629310229435dea36d8bc68849df901f4636696 (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
41
42
43
44
45
46
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList

Rectangle
{
    width:1024
    height: 768
    color: "blue"

    Text
    {
        id: band_txt
        x:300
        y:300
        height:100
        width:200
        text: "FM"
        color: "white"
        visible:true
    }

    Text
    {
        id: freq_txt
        x:band_txt.x + 200
        y:band_txt.y
        height:100
        width:200
        text: "87.5"
        color: "white"
        visible:true
    }

    Connections
    {
        target: dashRadioCtrl
        onDataResult:
        {
            console.log("onDataResult" + freq)
            freq_txt.text = freq
        }
    }

}