summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qradiobutton.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-03-03 13:53:16 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-03-03 13:58:05 (GMT)
commit515f6a8c3dbe382bbb4f84f758a61c719143d8a6 (patch)
tree0f43fe3f20d7b2c34b6ac1667db7fdeef9eb6f66 /src/gui/widgets/qradiobutton.cpp
parent4a5eaccce02dbabfd81e8809d453fc268cdba644 (diff)
downloadQt-515f6a8c3dbe382bbb4f84f758a61c719143d8a6.zip
Qt-515f6a8c3dbe382bbb4f84f758a61c719143d8a6.tar.gz
Qt-515f6a8c3dbe382bbb4f84f758a61c719143d8a6.tar.bz2
sizeHint of checkbox/radiobutton without text is not correct
Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src/gui/widgets/qradiobutton.cpp')
-rw-r--r--src/gui/widgets/qradiobutton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qradiobutton.cpp b/src/gui/widgets/qradiobutton.cpp
index d73ff2f..20b6c720 100644
--- a/src/gui/widgets/qradiobutton.cpp
+++ b/src/gui/widgets/qradiobutton.cpp
@@ -195,7 +195,7 @@ QSize QRadioButton::sizeHint() const
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()));