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:
commit
02c6afd769
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user