summaryrefstree
path: root/usr/bin/qml_link/AppLink/Com/App_HMICamera.qml
blob: ffafe899e86dda4d89d48dfa03efb7e9214cde0a (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
/*
 * =====================================================================================
 *
 *       Filename:  App_HMIMapScale.qml
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  2016-1-5 15:50
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  jliu.neu, jliu.neu@neusoft.com
 *   Organization:  www.neusoft.com
 *
 * =====================================================================================
 */
import QtQuick 2.0
import Label 2.0
Image{
    id: roadCamera
    source: ""
    property alias eeyeImage: roadCamera_icon.source

    MouseArea{
        id: mouseArea
        anchors.fill: parent
    }
    Image{
        id:roadCamera_icon
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter:   parent.verticalCenter
        source:""
    }
    Connections{
        target:applinkControl
        onSignal_EEyeAndWarningNotify:{
            if(visible){
                roadCamera_icon.source = qImagePath;
                roadCamera.source = (qImagePath === "")?"":imagePath_navi+"M8X_Frame.png"
            }
        }
    }
}