Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update license headers. | Jason McDonald | 2009-08-11 | 2 | -2/+2 |
| | | | | Reviewed-by: Trust Me | ||||
* | Update license headers as requested by the marketing department. | Jason McDonald | 2009-06-16 | 2 | -4/+4 |
| | | | | Reviewed-by: Trust Me | ||||
* | Reset the 'connectedToScene' flag when changing the scene of a view | Leonardo Sobral Cunha | 2009-05-13 | 1 | -0/+24 |
| | | | | | | | | | | In QGraphicsScene::_q_emitUpdated() the slot QGrpahicsView::updateScene(QList<QRectF>) gets connected and a boolean (connectedToScene) is set to prevent double connections. The problem is that this boolean was not reset when the view gets a new scene. Task-number: 253415 Reviewed-by: andreas | ||||
* | Remove obsolete code from autotests. | Jason McDonald | 2009-04-16 | 1 | -5/+0 |
| | | | | | | | | Each version of Qt has its own set of autotests, therefore preprocessor directives relating to obsolete QT_VERSION's are not necessary. Reviewed-by: Carlos Duclos | ||||
* | Fixup update rect regression by adjusting expose rectangles. | Andreas Aardal Hanssen | 2009-04-06 | 1 | -0/+61 |
| | | | | | | | | | | | | | | | | | | | | | | | This change shows a limitation in Graphics View caused by QPen's default width being 0 (cosmetic), while Graphics View actually does not support cosmetic pens at all. Because items are at risk of drawing lines that poke 1 pixel outside their bounding rect, QGraphicsView must look for items that are up to one pixel larger than their bounding rect mapped to viewport coordinates. Furthermore, mapToScene(QRect) forces us to adjust the input rectangle by (0, 0, 1, 1), because it uses QRect::bottomRight() (etc) when mapping the rectangle to a polygon (which is _wrong_). Since this behavior has been there since 4.2, we don't want to fix it in a 4.5 patch release... The only _proper_ fix to this problem is for the view to know the item's "adjust" in device coordinates, allowing items to use cosmetic pens freely. Fex, we could introduce QGraphicsItem::viewportMargins() or so. Added an autotest to ensure this doesn't break again. Reviewed-by: bnilsen | ||||
* | Long live Qt 4.5! | Lars Knoll | 2009-03-23 | 4 | -0/+3954 |