qml-app removed some dead code

This commit is contained in:
Gioacchino Mazzurco 2017-10-08 12:00:07 +02:00
parent 9ba7b5cf47
commit 69efa07224

View File

@ -4,13 +4,11 @@ import "../" // Needed by ChatCache (where stores generated faces)
Item
{
id: faces
property string hash
property var facesCache: ChatCache.facesCache
Image
{
id: imageAvatar
@ -18,49 +16,10 @@ Item
height: iconSize
}
// Canvas
// {
// id: canvasAvatar
// width: height
// height: canvasSizes
// visible: false
// renderStrategy: Canvas.Threaded;
// renderTarget: Canvas.Image;
// property var images
// property var callback
// onPaint:
// {
// var ctx = getContext("2d");
// if (images)
// {
// for (y = 0 ; y< nPieces ; y++)
// {
// ctx.drawImage(images[y], 0, 0, iconSize, iconSize )
// }
// }
// }
// onPainted:
// {
// if (callback)
// {
// var data = toDataURL('image/png')
// callback(data)
// }
// }
// }
Component.onCompleted:
{
createFromHex(hash)
}
Component.onCompleted: createFromHex(hash)
/* TODO: Is there a reason why we are using var and not proper type for the
* following properties? */
property var facesPath: "/icons/faces/"