mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04: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))
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user