mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 08:54:13 -04:00
Added new method to GxsFeedItem to set content with QVariant.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7477 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3458cdc8fc
commit
e588b25b67
6 changed files with 36 additions and 3 deletions
|
@ -78,6 +78,16 @@ void PostedItem::loadMessage(const uint32_t &token)
|
|||
setContent(mPost);
|
||||
}
|
||||
|
||||
void PostedItem::setContent(const QVariant &content)
|
||||
{
|
||||
if (!content.canConvert<RsPostedPost>()) {
|
||||
return;
|
||||
}
|
||||
|
||||
RsPostedPost post = content.value<RsPostedPost>();
|
||||
setContent(post);
|
||||
}
|
||||
|
||||
void PostedItem::setContent(const RsPostedPost &post)
|
||||
{
|
||||
mPost = post;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue