mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 05:44:45 -04:00
limit the size of group description in GroupTreeWidget tooltip
This commit is contained in:
parent
f400607c88
commit
c6b6a148ef
1 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue