mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 17:26:21 +03:00
Show tooltip for some properties in transfer list
Tooltip is added for next columns: - name - status - category - tags - tracker - save path closes #12696
This commit is contained in:
parent
93e1e063b2
commit
1fd4ff5c2c
1 changed files with 11 additions and 0 deletions
|
@ -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 a new issue