diff options
author | Carlos Manuel Duclos Vergara <carlos.duclos@nokia.com> | 2010-01-25 15:10:21 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-01-29 11:22:57 (GMT) |
commit | 95a4f3a8ab58d7b85b8b957065a07c549b090450 (patch) | |
tree | 907ccbe2516b80dc2c4b9873ab82de716849427e /doc/src/snippets/code/src_gui_dialogs_qwizard.cpp | |
parent | 24e76d093905ae0ce996bda38546265ab587bc4e (diff) | |
download | Qt-95a4f3a8ab58d7b85b8b957065a07c549b090450.zip Qt-95a4f3a8ab58d7b85b8b957065a07c549b090450.tar.gz Qt-95a4f3a8ab58d7b85b8b957065a07c549b090450.tar.bz2 |
Drawing fake buttons using QMacStyle+QStyleOptionViewItemV4 lead to crash.
The problem here is the fact that we "trusted" the user when the widget
type was specified. The fix consists in checking the result of the
conversions, if the conversion was successful (i.e. the widget was of
the type specified by the user) then we proceed as usual. If the
conversion was not successful (i.e. wrong widget type) then we ask the
style for a sensible size.
I modified this for QPushButton, QSlider and QToolButton.
Task-number: qtbug-7522
Reviewed-by: jbache
(cherry picked from commit f92e9c32160ca32b93173dafad2734963528446d)
Diffstat (limited to 'doc/src/snippets/code/src_gui_dialogs_qwizard.cpp')
0 files changed, 0 insertions, 0 deletions