diff -r b72c6db6890b -r 5dc02b23752f src/gui/widgets/qradiobutton.cpp --- a/src/gui/widgets/qradiobutton.cpp Wed Jun 23 19:07:03 2010 +0300 +++ b/src/gui/widgets/qradiobutton.cpp Tue Jul 06 15:10:48 2010 +0300 @@ -195,7 +195,7 @@ ensurePolished(); QStyleOptionButton opt; initStyleOption(&opt); - QSize sz = style()->itemTextRect(fontMetrics(), QRect(0, 0, 1, 1), Qt::TextShowMnemonic, + QSize sz = style()->itemTextRect(fontMetrics(), QRect(), Qt::TextShowMnemonic, false, text()).size(); if (!opt.icon.isNull()) sz = QSize(sz.width() + opt.iconSize.width() + 4, qMax(sz.height(), opt.iconSize.height()));