From bdc5e9ebf5decfb4ae7936fe91f29e9eaef42ae8 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Tue, 27 Feb 2018 22:19:32 -0800 Subject: [PATCH] re-enable profile via tap on username or avatar resolves #22 --- assets/PostItem.qml | 23 +++++++++++++---------- translations/Goober.ts | 20 ++++++++++---------- 2 files changed, 23 insertions(+), 20 deletions(-) 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