1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-25 14:04:23 +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:
Chocobo1 2021-07-07 12:51:55 +08:00
parent 9bfc74a1bc
commit bdc03b1c75
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -373,6 +373,7 @@ void TrackerListWidget::loadTrackers()
{ {
item = new QTreeWidgetItem(); item = new QTreeWidgetItem();
item->setText(COL_URL, trackerURL); item->setText(COL_URL, trackerURL);
item->setToolTip(COL_URL, trackerURL);
addTopLevelItem(item); addTopLevelItem(item);
m_trackerItems[trackerURL] = item; m_trackerItems[trackerURL] = item;
} }
@ -400,6 +401,7 @@ void TrackerListWidget::loadTrackers()
} }
item->setText(COL_MSG, entry.message); item->setText(COL_MSG, entry.message);
item->setToolTip(COL_MSG, entry.message);
item->setText(COL_PEERS, ((entry.numPeers > -1) item->setText(COL_PEERS, ((entry.numPeers > -1)
? QString::number(entry.numPeers) ? QString::number(entry.numPeers)
: tr("N/A"))); : tr("N/A")));