mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 23:55:35 -04:00
Merge pull request #543 from PhenomRetroShare/Add_TooltipOnComments
Add Tooltip on comments column to see too long text.
This commit is contained in:
commit
04992c9c29
1 changed files with 7 additions and 5 deletions
|
@ -427,10 +427,12 @@ void GxsCommentTreeWidget::service_loadThread(const uint32_t &token)
|
||||||
|
|
||||||
text = qtime.toString("yyyy-MM-dd hh:mm:ss") ;
|
text = qtime.toString("yyyy-MM-dd hh:mm:ss") ;
|
||||||
item->setText(PCITEM_COLUMN_DATE, text) ;
|
item->setText(PCITEM_COLUMN_DATE, text) ;
|
||||||
|
item->setToolTip(PCITEM_COLUMN_DATE, text) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
text = QString::fromUtf8(comment.mComment.c_str());
|
text = QString::fromUtf8(comment.mComment.c_str());
|
||||||
item->setText(PCITEM_COLUMN_COMMENT, text);
|
item->setText(PCITEM_COLUMN_COMMENT, text);
|
||||||
|
item->setToolTip(PCITEM_COLUMN_COMMENT, text);
|
||||||
|
|
||||||
RsGxsId authorId = comment.mMeta.mAuthorId;
|
RsGxsId authorId = comment.mMeta.mAuthorId;
|
||||||
item->setId(authorId, PCITEM_COLUMN_AUTHOR, false);
|
item->setId(authorId, PCITEM_COLUMN_AUTHOR, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue