treeview-bold-text.patch
src/qtui/playlist_model.cc | ||
---|---|---|
118 | 118 |
return QString("%1").arg(val); |
119 | 119 |
} |
120 | 120 | |
121 |
case Qt::FontRole: |
|
122 |
{ |
|
123 |
QFont font; |
|
124 |
if (index.row() == m_playlist.get_position()) |
|
125 |
font.setBold(true); |
|
126 |
return font; |
|
127 |
} |
|
128 | ||
121 | 129 |
case Qt::TextAlignmentRole: |
122 | 130 |
return alignment(col); |
123 | 131 |