OSDN Git Service

Fix crash when loading any Qml file in QuickDesigner
authorKai Koehne <kai.koehne@nokia.com>
Mon, 19 Jul 2010 14:53:40 +0000 (16:53 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Mon, 23 Aug 2010 09:26:23 +0000 (11:26 +0200)
commit50f35474792cc7ce8d8c237b8582818c072ffc3c
treee5ace13ab9b6c3b0c80a4c1523b45727aa36b256
parent07845306dbabf59d3dcc9b85f30f4e998d8806e4
Fix crash when loading any Qml file in QuickDesigner

Qt change f5c5e20ab20f016c0735 optimizes the calculation of the
children's bounding rect by taking the parent bounding rect into
account. This led to a recursion in the QuickDesigner Form Editor,
because LayerItem::boundingRect() is defined as the children's bounding
rect.

Break the cycle by setting ItemClipsChildrenToShape to false.
(cherry picked from commit 2067cfcf28bdd5dcbbc64411255925cf52aa1b8a)
src/plugins/qmldesigner/components/formeditor/formeditorscene.cpp