summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-11-05 11:59:18 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-11-05 16:47:21 (GMT)
commit7b63ce043dfaec5ec83d938b1cea8ee0ead614ff (patch)
treeed70eb1a750fc69c54a0595c235b5183d59b9ee9 /tests/benchmarks
parent1bfdedb16fdcafc0fdbcea342d68801b8404ea24 (diff)
downloadQt-7b63ce043dfaec5ec83d938b1cea8ee0ead614ff.zip
Qt-7b63ce043dfaec5ec83d938b1cea8ee0ead614ff.tar.gz
Qt-7b63ce043dfaec5ec83d938b1cea8ee0ead614ff.tar.bz2
QStyleSheetStyle: Fix crash that occurs with several instance of QStyleSheetStyle
The problem is that when a widget is destroyed, it was not properly removed from the cache. We connected the destroyed signal to a slot in the QStyleSheetStyle for the first QStyleSheetStyle that handle a widget. but if this QStyleSheetStyle is destroyed, that connection is lost. Solution: Create a new QStyleSheetStyleCaches that will be responsible to clean the caches. This objects is not destroyed as long as there is a QStyleSheetStyle instance, so the connection is not lost. I took the oportunity to move all the caches to this object. Reveiwed-by: Gabriel Task-number: QTBUG-11658
Diffstat (limited to 'tests/benchmarks')
0 files changed, 0 insertions, 0 deletions