diff options
author | Carlos Manuel Duclos Vergara <carlos.duclos@nokia.com> | 2010-01-25 15:10:21 (GMT) |
---|---|---|
committer | Carlos Manuel Duclos Vergara <carlos.duclos@nokia.com> | 2010-01-26 09:43:46 (GMT) |
commit | f92e9c32160ca32b93173dafad2734963528446d (patch) | |
tree | a65c74b7faef24c4195e9491e3e2adc19731912b /src/3rdparty | |
parent | 0c822ea63a8b2b0c32c68a49de81e0c02548f059 (diff) | |
download | Qt-f92e9c32160ca32b93173dafad2734963528446d.zip Qt-f92e9c32160ca32b93173dafad2734963528446d.tar.gz Qt-f92e9c32160ca32b93173dafad2734963528446d.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
Diffstat (limited to 'src/3rdparty')
0 files changed, 0 insertions, 0 deletions