summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMikko Knuutila <Mikko.Knuutila@Digia.com>2011-11-14 10:18:21 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-14 23:42:17 +0100
commit33f66acb3671e6fd658ac8bcbe7db8d608964abf (patch)
tree6898a6a80f21b05af95b4ed217f1d13c6583c0ce /src
parenta2ece6e626dcafd87e2c57a436225bc9d68128eb (diff)
Fix for the button size calculation in qmessagebox.cpp
Actually use the calculated size for needed space instead of just ignoring the return value. Task-number: QTBUG-16315 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> (cherry picked from commit 0792215fa8d227617a2080af9f12fd7f486b87d6) Change-Id: I0792215fa8d227617a2080af9f12fd7f486b87d6
Diffstat (limited to 'src')
-rw-r--r--src/widgets/dialogs/qmessagebox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp
index 93e9a34415..1dbdeff1a7 100644
--- a/src/widgets/dialogs/qmessagebox.cpp
+++ b/src/widgets/dialogs/qmessagebox.cpp
@@ -153,7 +153,7 @@ public:
expandedTo(QApplication::globalStrut());
opt.text = label(HideLabel);
sz = fm.size(Qt::TextShowMnemonic, opt.text);
- ret.expandedTo(style()->sizeFromContents(QStyle::CT_PushButton, &opt, sz, this).
+ ret = ret.expandedTo(style()->sizeFromContents(QStyle::CT_PushButton, &opt, sz, this).
expandedTo(QApplication::globalStrut()));
return ret;
}