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:
Nick Korotysh 2020-05-01 10:30:45 +03:00
parent 93e1e063b2
commit 1fd4ff5c2c
No known key found for this signature in database
GPG key ID: 7D0D4117C97CCC46

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: