attempt at reparsing but propbably won't keep

This commit is contained in:
Morgan McMillian 2017-02-04 19:54:02 -08:00
parent d42eb8f1ad
commit 4f89244065
2 changed files with 26 additions and 16 deletions

View file

@ -136,10 +136,25 @@ Container {
topMargin: ui.sdu(2.0)
bottomMargin: ui.sdu(2.0)
Label {
text: (ListItemData.is_deleted) ? qsTr("<i>{{POST DELETED}}</i>") : ListItemData.content.text
multiline: true
//textFormat: TextFormat.Html
//text: (ListItemData.is_deleted) ? qsTr("<i>{{POST DELETED}}</i>") : (ListItemData.content.html).replace(/<br>/g,"<br/>")
text: {
var text
if (ListItemData.is_deleted) {
text = "<i>{{POST DELETED}}</i>"
} else {
text = (ListItemData.content.html).replace(/<br>/g,"<br/>")
text = text = text.replace(/&[^amp;]/g,"&amp;");
}
return text
}
multiline: true
textFormat: TextFormat.Html
}
// Label {
// text: ListItemData.content.html
// multiline: true
// textFormat: TextFormat.Plain
// }
}
Container {
layout: DockLayout {}

View file

@ -30,52 +30,47 @@
<context>
<name>PostItem</name>
<message>
<location filename="../assets/PostItem.qml" line="139"/>
<source>&lt;i&gt;{{POST DELETED}}&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="169"/>
<location filename="../assets/PostItem.qml" line="184"/>
<source>Reply</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="178"/>
<location filename="../assets/PostItem.qml" line="193"/>
<source>Reply All</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="188"/>
<location filename="../assets/PostItem.qml" line="203"/>
<source>Add Bookmark</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="188"/>
<location filename="../assets/PostItem.qml" line="203"/>
<source>Delete Bookmark</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="199"/>
<location filename="../assets/PostItem.qml" line="214"/>
<source>Repost</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="199"/>
<location filename="../assets/PostItem.qml" line="214"/>
<source>Delete Repost</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="210"/>
<location filename="../assets/PostItem.qml" line="225"/>
<source>Quote</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="219"/>
<location filename="../assets/PostItem.qml" line="234"/>
<source>View Profile</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="237"/>
<location filename="../assets/PostItem.qml" line="252"/>
<source>Delete</source>
<translation type="unfinished"></translation>
</message>