re-enable profile via tap on username or avatar resolves #22

This commit is contained in:
Morgan McMillian 2018-02-27 22:19:32 -08:00
parent 8ea6fcaf09
commit bdc5e9ebf5
2 changed files with 23 additions and 20 deletions

View file

@ -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: "<a href=\"#profile\">" + ListItemData.user.username + "</a>"
// activeTextHandler: ActiveTextHandler {
// onTriggered: {
// postitem.ListItem.view.viewProfile(ListItemData.user)
// }
// }
// textFormat: TextFormat.Html
// text: ListItemData.user.username
text: "<a href=\"#profile\">" + ListItemData.user.username + "</a>"
activeTextHandler: ActiveTextHandler {
onTriggered: {
postitem.ListItem.view.viewProfile(ListItemData.user)
}
}
textFormat: TextFormat.Html
}
}
}

View file

@ -43,52 +43,52 @@
<context>
<name>PostItem</name>
<message>
<location filename="../assets/PostItem.qml" line="248"/>
<location filename="../assets/PostItem.qml" line="251"/>
<source>Reply</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="257"/>
<location filename="../assets/PostItem.qml" line="260"/>
<source>Reply All</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="267"/>
<location filename="../assets/PostItem.qml" line="270"/>
<source>Delete Bookmark</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="267"/>
<location filename="../assets/PostItem.qml" line="270"/>
<source>Add Bookmark</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="278"/>
<location filename="../assets/PostItem.qml" line="281"/>
<source>Delete Repost</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="278"/>
<location filename="../assets/PostItem.qml" line="281"/>
<source>Repost</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="289"/>
<location filename="../assets/PostItem.qml" line="292"/>
<source>Quote</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="298"/>
<location filename="../assets/PostItem.qml" line="301"/>
<source>View Profile</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="305"/>
<location filename="../assets/PostItem.qml" line="308"/>
<source>Copy text</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="335"/>
<location filename="../assets/PostItem.qml" line="338"/>
<source>Delete</source>
<translation type="unfinished"></translation>
</message>