mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-01 11:21:25 -05:00
limit the size of group description in GroupTreeWidget tooltip
This commit is contained in:
parent
f400607c88
commit
c6b6a148ef
@ -525,7 +525,14 @@ void GroupTreeWidget::fillGroupItems(QTreeWidgetItem *categoryItem, const QList<
|
|||||||
if(!IS_GROUP_SUBSCRIBED(itemInfo.subscribeFlags))
|
if(!IS_GROUP_SUBSCRIBED(itemInfo.subscribeFlags))
|
||||||
tooltip += "\n" + tr("Subscribe to download and read messages") ;
|
tooltip += "\n" + tr("Subscribe to download and read messages") ;
|
||||||
|
|
||||||
tooltip += "\n" + tr("Description") + ": " + itemInfo.description;
|
QString desc = itemInfo.description.left(30);
|
||||||
|
desc.replace("\n"," ");
|
||||||
|
desc.replace("\t"," ");
|
||||||
|
|
||||||
|
if(itemInfo.description.length() > 30)
|
||||||
|
desc += "...";
|
||||||
|
|
||||||
|
tooltip += "\n" + tr("Description") + ": " + desc;
|
||||||
|
|
||||||
tooltip += "\n" + tr("Id") + ": " + itemInfo.id;
|
tooltip += "\n" + tr("Id") + ": " + itemInfo.id;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user