1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Merge pull request #12711 from Kolcha/tooltip

Show tooltip for torrent name in transfer list
This commit is contained in:
Mike Tzou 2020-05-02 11:51:16 +08:00 committed by GitHub
commit 02c6afd769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,6 +461,17 @@ QVariant TransferListModel::data(const QModelIndex &index, const int role) const
if (index.column() == TR_NAME)
return getIconByState(torrent->state());
break;
case Qt::ToolTipRole:
switch (index.column()) {
case TR_NAME:
case TR_STATUS:
case TR_CATEGORY:
case TR_TAGS:
case TR_TRACKER:
case TR_SAVE_PATH:
return displayValue(torrent, index.column());
}
break;
case Qt::TextAlignmentRole:
switch (index.column()) {
case TR_AMOUNT_DOWNLOADED: