diff --git a/assets/PostItem.qml b/assets/PostItem.qml index a186fe7..f6cd053 100644 --- a/assets/PostItem.qml +++ b/assets/PostItem.qml @@ -45,14 +45,17 @@ Container { } Container { background: (theme === VisualStyle.Bright) ? Color.create("#e9e9e9") : Color.create("#282828") - ImageView { + ImageButton { id: avatar minWidth: ui.du(12) minHeight: ui.du(12) maxWidth: ui.du(12) maxHeight: ui.du(12) //imageSource: "asset:///icons/laughing_man.png" - image: tracker.image + defaultImage: tracker.image + onClicked: { + postitem.ListItem.view.viewProfile(ListItemData.user) + } attachedObjects: [ NetImageTracker { id: tracker @@ -74,14 +77,14 @@ Container { Container { Label { id: username - text: ListItemData.user.username -// text: "" + ListItemData.user.username + "" -// activeTextHandler: ActiveTextHandler { -// onTriggered: { -// postitem.ListItem.view.viewProfile(ListItemData.user) -// } -// } -// textFormat: TextFormat.Html +// text: ListItemData.user.username + text: "" + ListItemData.user.username + "" + activeTextHandler: ActiveTextHandler { + onTriggered: { + postitem.ListItem.view.viewProfile(ListItemData.user) + } + } + textFormat: TextFormat.Html } } } diff --git a/translations/Goober.ts b/translations/Goober.ts index 2b48788..3cf90e8 100644 --- a/translations/Goober.ts +++ b/translations/Goober.ts @@ -43,52 +43,52 @@ PostItem - + Reply - + Reply All - + Delete Bookmark - + Add Bookmark - + Delete Repost - + Repost - + Quote - + View Profile - + Copy text - + Delete