PlaylistProxyStyle: Use CE_HeaderLabel instead of CE_Header

This commit is contained in:
Jonas Kvinge 2023-10-07 14:50:46 +02:00
parent e172c4871c
commit 604a246fe8
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ PlaylistProxyStyle::PlaylistProxyStyle(const QString &style) : QProxyStyle(style
void PlaylistProxyStyle::drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const {
if (element == CE_Header) {
if (element == CE_HeaderLabel) {
const QStyleOptionHeader *header_option = qstyleoption_cast<const QStyleOptionHeader*>(option);
const QRect &rect = header_option->rect;
const QString &text = header_option->text;