mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06: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:
@@ -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")));
|
||||||
|
|||||||
Reference in New Issue
Block a user