1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

Also show tooltip for playlist column names.

Updates issue #181
This commit is contained in:
John Maguire 2010-04-11 21:45:19 +00:00
parent 7238bd7014
commit d0ddeb2956

View File

@ -56,12 +56,12 @@ Playlist::~Playlist() {
}
QVariant Playlist::headerData(int section, Qt::Orientation, int role) const {
if (role != Qt::DisplayRole)
if (role != Qt::DisplayRole && role != Qt::ToolTipRole)
return QVariant();
QString name = column_name((Playlist::Column)section);
if(name.size())
return name;
return name;
return QVariant();
}