mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
qml-app removed some dead code
This commit is contained in:
parent
9ba7b5cf47
commit
69efa07224
@ -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/"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user