Browse Source

Merge pull request #12711 from Kolcha/tooltip

Show tooltip for torrent name in transfer list
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
02c6afd769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      src/gui/transferlistmodel.cpp

11
src/gui/transferlistmodel.cpp

@ -461,6 +461,17 @@ QVariant TransferListModel::data(const QModelIndex &index, const int role) const @@ -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…
Cancel
Save