summaryrefstree
path: root/usr/bin/qml/Home/PowerON.qml
blob: 95a5afeb0b468c614f956a8808682eed63b78812 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import QtQuick 2.0
//ADD #127194 20161116 ld begin
import "../windowsList.js" as WindowsList
//ADD #127194 20161116 ld end
//ADD #127194 20161213 liduo begin
import "../layoutList.js" as LayoutList
//ADD #127194 20161213 liduo end
Rectangle
{
    id:power_on
    property string style: systemCtrl.style
    x:0
    y:0
    width: 960
    height: 1280
    color:"black"
    //ADD By qushh for bug 147838 start
    property bool completeFlag:false
    //ADD By qushh for bug 147838 end
    MouseArea
    {
        anchors.fill: parent
    }
    onVisibleChanged:
    {
        if(power_on.visible == true)
        {
            if(!systemCtrl.getWarningFlag())
            {
	    	//ADD By qushh for bug 147838 start
                //systemCtrl.gestureState = 0
                if(completeFlag)
                {    
                    systemCtrl.setGestureShieldState(LayoutList.GESTURE_POWER,LayoutList.POP_ALL_NOT_AVAILABLE)
		    //ADD By qu-shh for auto display off start 
                    systemCtrl.auto_Displayoff_Shield()
		    //ADD By qu-shh for auto display off end  
                }
		//ADD By qushh for bug 147838 end
            }
            //ADD #127194 20161116 ld begin
            if(ScreenManager.isOverlayShowed(WindowsList.SOUND_VOL_POP))
            {
                ScreenManager.hideOverlay(WindowsList.SOUND_VOL_POP)
		//ADD #127194 20161213 liduo begin
                powerofftimer.start()
		//ADD #127194 20161213 liduo end
            }
            //ADD #127194 20161116 ld end
        }
        else
        {
            if(!systemCtrl.getWarningFlag())
            {
	    	//ADD By qushh for bug 147838 start
                //systemCtrl.gestureState = 1
                if(completeFlag)
                {
                    systemCtrl.setGestureShieldState(LayoutList.GESTURE_POWER,LayoutList.POP_ALL_AVAILABLE)
		    //ADD By qu-shh for auto display off start  
                    systemCtrl.auto_Displayoff_Unshield()
		    //ADD By qu-shh for auto display off end  
                }
                else{
                    completeFlag = true;
                }
		//ADD By qushh for bug 147838 end
            }
        }
    }
    //ADD #127194 20161213 liduo begin
    Timer
    {
        id:powerofftimer
        interval: 100
        running: false
        repeat: false
        onTriggered:
        {
            if(!systemCtrl.getWarningFlag())
            {
                systemCtrl.changWindowlayer(LayoutList.Black_Layer,LayoutList.LayerShow);
            }
        }
    }
    //ADD #127194 20161213 liduo end
}