diff options
Diffstat (limited to 'src/widgets/styles/qstylesheetstyle.cpp')
-rw-r--r-- | src/widgets/styles/qstylesheetstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 2f38b72c21..b2f84e2f30 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -3789,7 +3789,7 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q QRect textRect = subRule.contentsRect(opt->rect); textRect.setLeft(textRect.left() + textRectOffset); - textRect.setWidth(textRect.width() - mi.tabWidth); + textRect.setWidth(textRect.width() - mi.reservedShortcutWidth); const QRect vTextRect = visualRect(opt->direction, m->rect, textRect); QStringView s(mi.text); |