From 1307bb2f2aeb15d5a295b51275716b025ec80fc4 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 16 Nov 2017 13:11:26 -0800 Subject: [PATCH] Adapt useritem to use NetImageManager --- assets/UserItem.qml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/assets/UserItem.qml b/assets/UserItem.qml index 380bdeb..e3c9b47 100644 --- a/assets/UserItem.qml +++ b/assets/UserItem.qml @@ -1,5 +1,5 @@ import bb.cascades 1.4 -import org.labsquare 1.0 +import com.netimage 1.0 Container { id: useritem @@ -20,12 +20,24 @@ Container { Container { minWidth: ui.du(12) background: (theme === VisualStyle.Bright) ? Color.create("#e9e9e9") : Color.create("#282828") - WebImageView { + ImageView { id: avatar - url: ListItemData.content.avatar_image.link + //url: ListItemData.content.avatar_image.link maxWidth: ui.du(12) maxHeight: ui.du(12) //imageSource: "asset:///icons/laughing_man.png" + image: aimgtracker.image + attachedObjects: [ + NetImageTracker { + id: aimgtracker + manager: imgManager + source: ListItemData.content.avatar_image.link + }, + NetImageManager { + id: imgManager + cacheId: "feedImageManager" + } + ] } } Container {