summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-01-25 15:10:21 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-01-26 09:43:46 (GMT)
commitf92e9c32160ca32b93173dafad2734963528446d (patch)
treea65c74b7faef24c4195e9491e3e2adc19731912b /src/network
parent0c822ea63a8b2b0c32c68a49de81e0c02548f059 (diff)
downloadQt-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/network')
0 files changed, 0 insertions, 0 deletions