Browse Source

Show tooltip for some properties in transfer list

Tooltip is added for next columns:
- name
- status
- category
- tags
- tracker
- save path

closes #12696
adaptive-webui-19844
Nick Korotysh 5 years ago
parent
commit
1fd4ff5c2c
No known key found for this signature in database
GPG Key ID: 7D0D4117C97CCC46
  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
if (index.column() == TR_NAME) if (index.column() == TR_NAME)
return getIconByState(torrent->state()); return getIconByState(torrent->state());
break; 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: case Qt::TextAlignmentRole:
switch (index.column()) { switch (index.column()) {
case TR_AMOUNT_DOWNLOADED: case TR_AMOUNT_DOWNLOADED:

Loading…
Cancel
Save