mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Add tooltip for various columns
Those strings sometimes are quite long and having a tooltip would save the action of resizing the column width to see the full message. The WebUI already has it done for all columns.
This commit is contained in:
parent
9bfc74a1bc
commit
bdc03b1c75
@ -373,6 +373,7 @@ void TrackerListWidget::loadTrackers()
|
||||
{
|
||||
item = new QTreeWidgetItem();
|
||||
item->setText(COL_URL, trackerURL);
|
||||
item->setToolTip(COL_URL, trackerURL);
|
||||
addTopLevelItem(item);
|
||||
m_trackerItems[trackerURL] = item;
|
||||
}
|
||||
@ -400,6 +401,7 @@ void TrackerListWidget::loadTrackers()
|
||||
}
|
||||
|
||||
item->setText(COL_MSG, entry.message);
|
||||
item->setToolTip(COL_MSG, entry.message);
|
||||
item->setText(COL_PEERS, ((entry.numPeers > -1)
|
||||
? QString::number(entry.numPeers)
|
||||
: tr("N/A")));
|
||||
|
Loading…
Reference in New Issue
Block a user