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 { Container {
background: (theme === VisualStyle.Bright) ? Color.create("#e9e9e9") : Color.create("#282828") background: (theme === VisualStyle.Bright) ? Color.create("#e9e9e9") : Color.create("#282828")
ImageView { ImageButton {
id: avatar id: avatar
minWidth: ui.du(12) minWidth: ui.du(12)
minHeight: ui.du(12) minHeight: ui.du(12)
maxWidth: ui.du(12) maxWidth: ui.du(12)
maxHeight: ui.du(12) maxHeight: ui.du(12)
//imageSource: "asset:///icons/laughing_man.png" //imageSource: "asset:///icons/laughing_man.png"
image: tracker.image defaultImage: tracker.image
onClicked: {
postitem.ListItem.view.viewProfile(ListItemData.user)
}
attachedObjects: [ attachedObjects: [
NetImageTracker { NetImageTracker {
id: tracker id: tracker
@ -74,14 +77,14 @@ Container {
Container { Container {
Label { Label {
id: username id: username
text: ListItemData.user.username // text: ListItemData.user.username
// text: "<a href=\"#profile\">" + ListItemData.user.username + "</a>" text: "<a href=\"#profile\">" + ListItemData.user.username + "</a>"
// activeTextHandler: ActiveTextHandler { activeTextHandler: ActiveTextHandler {
// onTriggered: { onTriggered: {
// postitem.ListItem.view.viewProfile(ListItemData.user) postitem.ListItem.view.viewProfile(ListItemData.user)
// } }
// } }
// textFormat: TextFormat.Html textFormat: TextFormat.Html
} }
} }
} }

View file

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