mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
qml-app removed some dead code
This commit is contained in:
parent
9ba7b5cf47
commit
69efa07224
1 changed files with 3 additions and 44 deletions
|
@ -4,13 +4,11 @@ import "../" // Needed by ChatCache (where stores generated faces)
|
||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
|
||||||
id: faces
|
id: faces
|
||||||
|
|
||||||
property string hash
|
property string hash
|
||||||
property var facesCache: ChatCache.facesCache
|
property var facesCache: ChatCache.facesCache
|
||||||
|
|
||||||
|
|
||||||
Image
|
Image
|
||||||
{
|
{
|
||||||
id: imageAvatar
|
id: imageAvatar
|
||||||
|
@ -18,49 +16,10 @@ Item
|
||||||
height: iconSize
|
height: iconSize
|
||||||
}
|
}
|
||||||
|
|
||||||
// Canvas
|
Component.onCompleted: createFromHex(hash)
|
||||||
// {
|
|
||||||
// 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)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* TODO: Is there a reason why we are using var and not proper type for the
|
||||||
|
* following properties? */
|
||||||
|
|
||||||
property var facesPath: "/icons/faces/"
|
property var facesPath: "/icons/faces/"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue