Browse Source

Display tooltip for all columns in torrent content widget

It is primary useful for showing long file names.
adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
4b0a2d050a
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 3
      src/gui/torrentcontentmodel.cpp

3
src/gui/torrentcontentmodel.cpp

@ -339,7 +339,7 @@ int TorrentContentModel::getFileIndex(const QModelIndex &index) @@ -339,7 +339,7 @@ int TorrentContentModel::getFileIndex(const QModelIndex &index)
return -1;
}
QVariant TorrentContentModel::data(const QModelIndex &index, int role) const
QVariant TorrentContentModel::data(const QModelIndex &index, const int role) const
{
if (!index.isValid())
return {};
@ -375,6 +375,7 @@ QVariant TorrentContentModel::data(const QModelIndex &index, int role) const @@ -375,6 +375,7 @@ QVariant TorrentContentModel::data(const QModelIndex &index, int role) const
return {};
case Qt::DisplayRole:
case Qt::ToolTipRole:
return item->displayData(index.column());
case Roles::UnderlyingDataRole:

Loading…
Cancel
Save