Version 0.002 with working FriendsTabView

This commit is contained in:
LubuWest 2016-10-19 21:37:26 +02:00
commit 42de63fe63
77 changed files with 6830 additions and 387 deletions

View file

@ -0,0 +1,26 @@
import QtQuick 2.0
import "qrc:/js/helper.js" as Helperjs
Image {
id:photoPlaceholder
property string imageName:"x.jpg"
property string downloadtype:""
fillMode: Image.PreserveAspectFit
onStatusChanged: {
if (photoPlaceholder.status == Image.Ready) {
print("Source: "+source+"Photo width"+width+" height"+height+" Ratio "+ fillMode);
var saveprocess=photoPlaceholder.grabToImage(function(result){
var saveresult=result.saveToFile(imageName.toString());
if (saveresult){
if ((downloadtype=="picture")&&(newImages.length>0)){
photoPlaceholder.destroy();
currentImageNo=currentImageNo+1
}
else if ((downloadtype=="contact")&&(root.newContacts.length>0))
{
photoPlaceholder.destroy(100);
root.currentContact=root.currentContact+1
}
}});
}}}