mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07: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
1 changed files with 2 additions and 0 deletions
|
@ -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")));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue