From d8fc66aa1e63271bf0af024461fdd4339530a636 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Fri, 21 Oct 2016 06:09:02 -0700 Subject: [PATCH] fix avatar display and setup link to user profile --- assets/PostItem.qml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/PostItem.qml b/assets/PostItem.qml index 818eb00..12c4de5 100644 --- a/assets/PostItem.qml +++ b/assets/PostItem.qml @@ -40,11 +40,12 @@ Container { orientation: LayoutOrientation.LeftToRight } Container { + background: (theme === VisualStyle.Bright) ? Color.create("#e9e9e9") : Color.create("#282828") WebImageView { id: avatar url: ListItemData.user.content.avatar_image.link - maxWidth: 100.0 - maxHeight: avatar.maxWidth + maxWidth: ui.du(12) + maxHeight: ui.du(12) //imageSource: "asset:///icons/laughing_man.png" } } @@ -60,7 +61,14 @@ Container { Container { Label { id: username - text: ListItemData.user.username + text: "" + ListItemData.user.username + "" + activeTextHandler: ActiveTextHandler { + onTriggered: { + console.log("duh: " + ListItemData.user.username) + postitem.ListItem.view.viewProfile(ListItemData.user) + } + } + textFormat: TextFormat.Html } } }