summaryrefslogtreecommitdiff
path: root/src/gui/dialogs/qmessagebox.cpp
diff options
context:
space:
mode:
authorMikko Knuutila <Mikko.Knuutila@Digia.com>2011-11-14 10:18:21 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-14 10:18:21 +0100
commit0792215fa8d227617a2080af9f12fd7f486b87d6 (patch)
tree8f7f455449378cf4c2a591999f84a5f11e235547 /src/gui/dialogs/qmessagebox.cpp
parentdf819cfe17f6dfd089096063524932fc4975804f (diff)
downloadqt4-tools-0792215fa8d227617a2080af9f12fd7f486b87d6.tar.gz
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>
Diffstat (limited to 'src/gui/dialogs/qmessagebox.cpp')
-rw-r--r--src/gui/dialogs/qmessagebox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qmessagebox.cpp b/src/gui/dialogs/qmessagebox.cpp
index 149e267999..ba00cd8fb2 100644
--- a/src/gui/dialogs/qmessagebox.cpp
+++ b/src/gui/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;
}