mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Display tooltip for all columns in torrent content widget
It is primary useful for showing long file names.
This commit is contained in:
parent
d85c14864b
commit
4b0a2d050a
1 changed files with 2 additions and 1 deletions
|
@ -339,7 +339,7 @@ int TorrentContentModel::getFileIndex(const QModelIndex &index)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant TorrentContentModel::data(const QModelIndex &index, int role) const
|
QVariant TorrentContentModel::data(const QModelIndex &index, const int role) const
|
||||||
{
|
{
|
||||||
if (!index.isValid())
|
if (!index.isValid())
|
||||||
return {};
|
return {};
|
||||||
|
@ -375,6 +375,7 @@ QVariant TorrentContentModel::data(const QModelIndex &index, int role) const
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
|
case Qt::ToolTipRole:
|
||||||
return item->displayData(index.column());
|
return item->displayData(index.column());
|
||||||
|
|
||||||
case Roles::UnderlyingDataRole:
|
case Roles::UnderlyingDataRole:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue