Fixed crashes in Observer mode related to infinite bounding rects
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Tue, 17 May 2011 10:12:52 +0000 (12:12 +0200)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Fri, 27 May 2011 13:40:36 +0000 (15:40 +0200)
commite2939ee2a903676c00c6711e2f5444f058fb6269
treebbb73bb2e8f2e07e8eb78e0cdb471d76ce68a0a4
parentf0c87d3a1fcf95df47635bd7308cd78e248db75d
Fixed crashes in Observer mode related to infinite bounding rects

Bug fixed by avoiding uniting or subtracting QPolygonF with potentially
infinite coordinates.

The LiveSelectionIndicator now uses a QGraphicsRectItem rather than a
QGraphicsPolygonItem and displays only the boundaries of selected
objects, not including their children.

The SubcomponentMaskLayerItem now works with rectangles and uses a
QRegion to determine the area around the current context, converting
this to a polygon only as a last step.

Reviewed-by: Kai Koehne
Task-number: QTCREATORBUG-4559
Change-Id: I266f5387fa67017fc50215282a95b4ee6498be6d
(cherry picked from commit d03065da2999b8539d8c5160b58d56dd94373d6f)
src/plugins/qmltooling/declarativeobserver/editor/liveselectionindicator.cpp
src/plugins/qmltooling/declarativeobserver/editor/liveselectionindicator_p.h
src/plugins/qmltooling/declarativeobserver/editor/subcomponentmasklayeritem.cpp