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 // } // } } }