QWindows11Style: Draw ItemView text, in case of custom Widget

Fixes: QTBUG-128517
Pick-to: 6.7
Change-Id: Ia48935eb8bc0acd77178a76502a4e84eb9822a76
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
(cherry picked from commit ceebef9af9f99ad1c497f56d5a4d376ce03006e1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Wladimir Leuschner 2024-09-13 14:54:01 +02:00 committed by Qt Cherry-pick Bot
parent 4034c896de
commit 63a4def507

View File

@ -1798,6 +1798,9 @@ void QWindows11Style::drawControl(ControlElement element, const QStyleOption *op
option->rect.x() + 1,option->rect.y() + option->rect.height() - 2);
}
}
} else {
QRect textRect = proxy()->subElementRect(SE_ItemViewItemText, vopt, widget);
d->viewItemDrawText(painter, vopt, textRect);
}
}
break;