blob: 02202d3b0e5324555a3499cbd432b12a7101f258 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
import QtQuick 2.0
import ImageLibrary 1.0
import "imageHeightScale.js" as ImageHeightScale
import "imageWidthScale.js" as ImageWidthScale
import "../usb_define.js" as StatusList
ImageViewer
{
id:imagegif
property int oldwidth: 738
property int oldheight: StatusList.IMAGE_HALF_HEIGHT
clip:false//true
smooth:false//true
imagemaxw:iImageMaxWidth
imagemaxh:iImageMaxHeight
// width:oldwidth
// height: oldheight
visible:true// (col4 == "1")?true:false
//add by F12 QC BUG 159981
//filePath:(col1 == 1 && col0 != "")?col0:""//(picFlick.imageFlag&&(imageLoadState))?imagePath:""
filePath:(col1 == 1 && col4 != "")?col4:""//(picFlick.imageFlag&&(imageLoadState))?imagePath:""
running:big_Grid_View.currentIndex == index?true:false
property int realwidth:0
property int realheight:0
Component.onCompleted: {
}
onImageUpdate:{//naca73877
if(col1 == 1)
{
// imagegif.width = ImageWidthScale.wscale(imagegif.curWidth,imagegif.curHeigh,StatusList.IMAGE_HALF_WIDTH,StatusList.IMAGE_HALF_HEIGHT)
// imagegif.height = ImageHeightScale.hscale(imagegif.curWidth,imagegif.curHeigh,StatusList.IMAGE_HALF_WIDTH,StatusList.IMAGE_HALF_HEIGHT)
// gifanalyze()
if(true == update)
{
// USBControl1.imageGifIsReday()
realwidth = imagegif.curWidth
realheight = imagegif.curHeigh
gifanalyze()
if(realwidth != 0 && realheight != 0)
{
defaultpic.visible = false
}
}
}
}
onImageWidthChanged:{
}
onImageheightChanged:{
}
onImageStateChanged:
{
if(col1 == 1)
{
picFlick.image_gif_States = imagegif.gifstate
if(picFlick.image_gif_States !=2)
{
picFlick.imageFlag = false
}
}
}
Connections
{
target: main_play_window
onImagechangegif:
{
running = false
if(big_Grid_View.currentIndex == index && col1 == 1)
{
running = true
}
}
//add by zhanglixin #358904 2019/10/12 begin
onSetsizegif_zlx:
{
console.log("\n\n@ZLX**main_play_window**big_Grid_View.currentIndex**"+big_Grid_View.currentIndex)
console.log("\n\n@ZLX**main_play_window**index**"+index)
console.log("\n\n@ZLX**main_play_window**col1**"+col1)
if(big_Grid_View.currentIndex == index && col1 == 1)
{
console.log("\n\n@ZLX**main_play_window**onSetsizegif_zlx**\n")
gifanalyze()
}
}
//add by zhanglixin #358904 2019/10/12 begin
onImagegifmovestart:
{
running = false
}
// onImageSize:
// {
// if(big_Grid_View.currentIndex == index && 1 == col1)
// {
// filePath = col0
// }
// }
}
}
|